List,
I'm happy to announce a new Lua library; terminal.
This one has been in the making for a long time. The main difference with other libraries is that this one supports Windows, Mac and Unix. Last year I contributed the platform specific terminal functions to LuaSystem, on top of which this library builds.
Besides generating the ANSI sequences to control the terminal, it also has "stacks" which allow for better control. So you can push "foreground red" onto the stack, changing the color to red, and then pop it again, reverting it to the previous settings.
Only dev code for now, no release yet. Since this cannot be easily all tested in an automated way, I do expect some bugs. Please give it a try and report any issues.
Source and docs are on Github [1], all comments welcome.
installation is easiest using luarocks with the `--dev` flag:
> luarocks install terminal --dev
Thijs
[1]
https://github.com/Tieske/terminal.lua