Windows Console Utility for Lua
This module allows some Windows console manipulation that change text and background colors and change codepage.
local wincon = require('wincon')
--
-- change console text color
--
wincon.SetTextColor(7, 1)
print "Blue background"
--
-- return to the initial state (it is automatically done when the module detached from the process.)
--
wincon.SetTextAttribute(wincon.InitialTextAttribute())
- v1.1.0 - SetTextColor accepts color name string.
- v1.0.0 - Initial release.
See ldoc
- If you want to see the document from github directly - link