From 108a0454d05c744c4a05e298cfc8cbf157952414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 12 Sep 2023 10:23:59 +0200 Subject: Rework file tree structure for info files. --- doc/ref/vulgar/color.texi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/ref/vulgar/color.texi (limited to 'doc/ref/vulgar/color.texi') diff --git a/doc/ref/vulgar/color.texi b/doc/ref/vulgar/color.texi new file mode 100644 index 00000000..611f4c54 --- /dev/null +++ b/doc/ref/vulgar/color.texi @@ -0,0 +1,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 -- cgit v1.2.3