Skip to content

yasuoohno/lua-wincon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LuaWinCon

Windows Console Utility for Lua

Overview

This module allows some Windows console manipulation that change text and background colors and change codepage.

Usage

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())

Change Log

  • v1.1.0 - SetTextColor accepts color name string.
  • v1.0.0 - Initial release.

Reference

See ldoc

  • If you want to see the document from github directly - link

About

Windows Console Utility for Lua

Resources

License

Stars

Watchers

Forks

Packages

No packages published