aboutsummaryrefslogtreecommitdiff
path: root/doc/ref/vulgar/color.texi
blob: 611f4c54af4824376eeddf40b22895652f853bb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@node Color
@section Color

@defvar STR-RESET
ANSI escape sequence for removing all current formatting, as a string.
@end defvar

@defmac color-if predicate color body ...
@code{(begin body ...)} is run, coloring it's return value using the
ANSI escape sequence @var{color}, if @var{predicate} is true, and
uncolored otherwise.
@end defmac

@defun color-escape n
Generates an RGB color escape code. @var{n} can either be @code{#f},
in which case the empty string is returned, or a a 24 bit color code
encoded hexadecimaly as @samp{#RRGGBB}.
@end defun