csutil/ansicommand.h File Reference
ANSI command codes. More...
Go to the source code of this file.
Defines | |
#define | CS_ANSI_RST "\033[0m" |
Reset custom set colors. | |
#define | CS_ANSI_TEXT_BOLD_OFF "\033[22m" |
Bold or intense foreground text off. | |
#define | CS_ANSI_TEXT_BOLD_ON "\033[1m" |
Bold or intense foreground text on. | |
Background colors | |
#define | CS_ANSI_BB "\033[44m" |
Blue. | |
#define | CS_ANSI_BC "\033[46m" |
Cyan. | |
#define | CS_ANSI_BG "\033[42m" |
Green. | |
#define | CS_ANSI_BK "\033[40m" |
Black. | |
#define | CS_ANSI_BM "\033[45m" |
Magenta. | |
#define | CS_ANSI_BR "\033[41m" |
Red. | |
#define | CS_ANSI_BW "\033[47m" |
White. | |
#define | CS_ANSI_BY "\033[43m" |
Yellow. | |
Clear commands | |
#define | CS_ANSI_CLEAR_LINE "\033[K" |
Clear end of line. | |
#define | CS_ANSI_CLEAR_SCREEN "\033[J" |
Clear screen. | |
Cursor movement commands | |
#define | CS_ANSI_CURSOR(x, y) "\033[" #y ";" #x "H" |
Move to specific position. | |
#define | CS_ANSI_CURSOR_BWD(c) "\033[" #c "D" |
Move backward specified number of columns. | |
#define | CS_ANSI_CURSOR_DOWN(l) "\033[" #l "B" |
Move down specified number of lines. | |
#define | CS_ANSI_CURSOR_FWD(c) "\033[" #c "C" |
Move forward specified number of columns. | |
#define | CS_ANSI_CURSOR_UP(l) "\033[" #l "A" |
Move up specified number of lines. | |
Foreground colors | |
#define | CS_ANSI_FB "\033[34m" |
Blue. | |
#define | CS_ANSI_FC "\033[36m" |
Cyan. | |
#define | CS_ANSI_FG "\033[32m" |
Green. | |
#define | CS_ANSI_FK "\033[30m" |
Black. | |
#define | CS_ANSI_FM "\033[35m" |
Magenta. | |
#define | CS_ANSI_FR "\033[31m" |
Red. | |
#define | CS_ANSI_FW "\033[37m" |
White. | |
#define | CS_ANSI_FY "\033[33m" |
Yellow. |
Detailed Description
ANSI command codes.
Can be passed to csPrintf() for formating text output.
Definition in file ansicommand.h.
Define Documentation
#define CS_ANSI_BB "\033[44m" |
Blue.
Definition at line 67 of file ansicommand.h.
#define CS_ANSI_BC "\033[46m" |
Cyan.
Definition at line 71 of file ansicommand.h.
#define CS_ANSI_BG "\033[42m" |
Green.
Definition at line 63 of file ansicommand.h.
#define CS_ANSI_BK "\033[40m" |
Black.
Definition at line 59 of file ansicommand.h.
#define CS_ANSI_BM "\033[45m" |
Magenta.
Definition at line 69 of file ansicommand.h.
#define CS_ANSI_BR "\033[41m" |
Red.
Definition at line 61 of file ansicommand.h.
#define CS_ANSI_BW "\033[47m" |
White.
Definition at line 73 of file ansicommand.h.
#define CS_ANSI_BY "\033[43m" |
Yellow.
Definition at line 65 of file ansicommand.h.
#define CS_ANSI_CLEAR_LINE "\033[K" |
Clear end of line.
Definition at line 81 of file ansicommand.h.
#define CS_ANSI_CLEAR_SCREEN "\033[J" |
Clear screen.
Definition at line 79 of file ansicommand.h.
#define CS_ANSI_CURSOR | ( | x, | |||
y | ) | "\033[" #y ";" #x "H" |
Move to specific position.
- Remarks:
- Coordinates are 1-based.
Definition at line 90 of file ansicommand.h.
#define CS_ANSI_CURSOR_BWD | ( | c | ) | "\033[" #c "D" |
Move backward specified number of columns.
Definition at line 98 of file ansicommand.h.
#define CS_ANSI_CURSOR_DOWN | ( | l | ) | "\033[" #l "B" |
Move down specified number of lines.
Definition at line 94 of file ansicommand.h.
#define CS_ANSI_CURSOR_FWD | ( | c | ) | "\033[" #c "C" |
Move forward specified number of columns.
Definition at line 96 of file ansicommand.h.
#define CS_ANSI_CURSOR_UP | ( | l | ) | "\033[" #l "A" |
Move up specified number of lines.
Definition at line 92 of file ansicommand.h.
#define CS_ANSI_FB "\033[34m" |
Blue.
Definition at line 42 of file ansicommand.h.
#define CS_ANSI_FC "\033[36m" |
Cyan.
Definition at line 46 of file ansicommand.h.
#define CS_ANSI_FG "\033[32m" |
Green.
Definition at line 38 of file ansicommand.h.
#define CS_ANSI_FK "\033[30m" |
Black.
Definition at line 34 of file ansicommand.h.
#define CS_ANSI_FM "\033[35m" |
Magenta.
Definition at line 44 of file ansicommand.h.
#define CS_ANSI_FR "\033[31m" |
Red.
Definition at line 36 of file ansicommand.h.
#define CS_ANSI_FW "\033[37m" |
White.
Definition at line 48 of file ansicommand.h.
#define CS_ANSI_FY "\033[33m" |
Yellow.
Definition at line 40 of file ansicommand.h.
#define CS_ANSI_RST "\033[0m" |
Reset custom set colors.
Definition at line 29 of file ansicommand.h.
#define CS_ANSI_TEXT_BOLD_OFF "\033[22m" |
Bold or intense foreground text off.
Definition at line 54 of file ansicommand.h.
#define CS_ANSI_TEXT_BOLD_ON "\033[1m" |
Bold or intense foreground text on.
Definition at line 52 of file ansicommand.h.
Generated for Crystal Space 2.0 by doxygen 1.6.1