The cross-platform Lua wrapper of the console manipulation library rlutil seems to have arrived at a certain milestone:
https://github.com/d-led/lurlutil
The API has been expanded, converging on the original scope of rlutil.
Enjoy:
for i = 0 , 15 do
lurlutil.setColor(i)
io.write(i.." ")
end
and much more further console fun for Windows, Linux and MacOS X.