Comprehensive Windows framework to develop in Lua
modules > console > reset

console.reset ( )

Resets the console to the default text and background colors. That function is always called before the program terminates.

Return value

The function returns no value.


local console = require "console"

-- set console text color to red
console.color = "red"
print("Hello World in red!")

-- revert back to the console default