Help ansi()
From Serenity : The Wiki
- 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.