Skip to content
ANSI terminal color manipulation for Lua.
Lua
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
COPYING
README.md
ansicolors-scm-1.rockspec
ansicolors.lua

README.md

Overview

NOTE: This project has been superseded by https://github.com/hoelzro/lua-term; please use that instead of this module.

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)
Something went wrong with that request. Please try again.