Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (14 sloc) 0.471 kb

etcol

Erlang terminal colors

Usage

etcol:t(Lines) -> string()

%% Types:

Lines = [ attr_line() ]
attr_line() = { [attrs()], string() }
attrs() = { text_attr, attr() } | { fg_color, color() } | { bg_color, color() } 
color() = 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white'
attr() = 'reset' | 'bright' | 'dim' | 'underscore' | 'blink' | 'reverse' | 'hidden'

Demo

Try:

> erlc etcol
> erl -noshell -run ertcol test
Jump to Line
Something went wrong with that request. Please try again.