Help ansi()

From Serenity : The Wiki
Revision as of 13:15, 14 March 2010 by Otrere (talk | contribs) (reindexing Help category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Syntax: ansi()

Ansi allows you to highlight a string using ANSI terminal effects.

The codes are:

f - flash F - not flash
h - hilite H - not hilite
u - underscore U - not underscore
i - inverse I - not inverse
n - normal  
 
x - black foreground X - black background
r - red foreground R - red background
g - green foreground G - green background
y - yellow foreground Y - yellow background
b - blue foreground B - blue background
m - magenta foreground M - magenta background
c - cyan foreground C - cyan background
w - white foreground W - white background

For example, "ansi(fc, Test)" would hilight "Test" in flashing cyan.