forked from hoelzro/ansicolors
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Overview | ||
-------- | ||
|
||
ansicolors is a simple Lua module for printing to the console | ||
in color. | ||
|
||
I hope to integrate this module with others into a luaterm | ||
distribution sometime in the near future. | ||
|
||
Installation | ||
------------ | ||
|
||
It's pure Lua, so just put ansicolors.lua somewhere where your | ||
Lua interpreter will be able to find it. | ||
|
||
Usage | ||
----- | ||
|
||
local colors = require 'ansicolors' | ||
print(color.red 'hello') | ||
print(color.red .. 'hello' .. color.reset) | ||
print(color.red, 'hello', color.reset) |