1FUNCTION::ANSI_SET_C(3staUpt)ility functions for usingFaUnNCTION::ANSI_SET_C(3stap)
2
3
4

NAME

6       function::ansi_set_color - Set the ansi Select Graphic Rendition mode.
7

SYNOPSIS

9       1) ansi_set_color(fg:long)
10
11       2) ansi_set_color(fg:long,bg:long)
12
13       3) ansi_set_color(fg:long,bg:long,attr:long)
14

ARGUMENTS

16       fg
17           Foreground color to set.
18
19       bg
20           Background color to set.
21
22       attr
23           Color attribute to set.
24

DESCRIPTION

26       1) Sends ansi code for Select Graphic Rendition mode for the given
27       forground color. Black (30), Blue (34), Green (32), Cyan (36), Red
28       (31), Purple (35), Brown (33), Light Gray (37).
29
30       2) Sends ansi code for Select Graphic Rendition mode for the given
31       forground color, Black (30), Blue (34), Green (32), Cyan (36), Red
32       (31), Purple (35), Brown (33), Light Gray (37) and the given background
33       color, Black (40), Red (41), Green (42), Yellow (43), Blue (44),
34       Magenta (45), Cyan (46), White (47).
35
36       3) Sends ansi code for Select Graphic Rendition mode for the given
37       forground color, Black (30), Blue (34), Green (32), Cyan (36), Red
38       (31), Purple (35), Brown (33), Light Gray (37), the given background
39       color, Black (40), Red (41), Green (42), Yellow (43), Blue (44),
40       Magenta (45), Cyan (46), White (47) and the color attribute All
41       attributes off (0), Intensity Bold (1), Underline Single (4), Blink
42       Slow (5), Blink Rapid (6), Image Negative (7).
43

SEE ALSO

45       tapset::ansi(3stap)
46
47
48
49SystemTap Tapset Reference       November 2021     FUNCTION::ANSI_SET_C(3stap)
Impressum