libcommonc++  0.7
TerminalAttr.h++ File Reference
Include dependency graph for TerminalAttr.h++:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ccxx
 

Macros

#define TERMATTR_ESC   "\033"
 Terminal control escape character. More...
 
#define TERMATTR_NORMAL   TERMATTR_ESC "[0m"
 Normal font. More...
 
#define TERMATTR_BOLD   TERMATTR_ESC "[1m"
 Bold font. More...
 
#define TERMATTR_DIM   TERMATTR_ESC "[2m"
 Dim (half-intensity) font. More...
 
#define TERMATTR_UNDERLINE   TERMATTR_ESC "[4m"
 Underlined font. More...
 
#define TERMATTR_BLINK   TERMATTR_ESC "[5m"
 Blinking font. More...
 
#define TERMATTR_INVERSE   TERMATTR_ESC "[7m"
 Inverse (reverse-video) font. More...
 
#define TERMATTR_FG_BLACK   TERMATTR_ESC "[30m"
 Set text foreground color to black. More...
 
#define TERMATTR_FG_RED   TERMATTR_ESC "[31m"
 Set text foreground color to red. More...
 
#define TERMATTR_FG_GREEN   TERMATTR_ESC "[32m"
 Set text foreground color to green. More...
 
#define TERMATTR_FG_YELLOW   TERMATTR_ESC "[33m"
 Set text foreground color to yellow. More...
 
#define TERMATTR_FG_BLUE   TERMATTR_ESC "[34m"
 Set text foreground color to blue. More...
 
#define TERMATTR_FG_MAGENTA   TERMATTR_ESC "[35m"
 Set text foreground color to magenta. More...
 
#define TERMATTR_FG_CYAN   TERMATTR_ESC "[36m"
 Set text foreground color to cyan. More...
 
#define TERMATTR_FG_WHITE   TERMATTR_ESC "[37m"
 Set text foreground color to white. More...
 
#define TERMATTR_FG_NORMAL   TERMATTR_ESC "[39m"
 Set text foreground color to default. More...
 
#define TERMATTR_BG_BLACK   TERMATTR_ESC "[40m"
 Set text background color to black. More...
 
#define TERMATTR_BG_RED   TERMATTR_ESC "[41m"
 Set text background color to red. More...
 
#define TERMATTR_BG_GREEN   TERMATTR_ESC "[42m"
 Set text background color to green. More...
 
#define TERMATTR_BG_YELLOW   TERMATTR_ESC "[43m"
 Set text background color to yellow. More...
 
#define TERMATTR_BG_BLUE   TERMATTR_ESC "[44m"
 Set text background color to blue. More...
 
#define TERMATTR_BG_MAGENTA   TERMATTR_ESC "[45m"
 Set text background color to magenta. More...
 
#define TERMATTR_BG_CYAN   TERMATTR_ESC "[46m"
 Set text background color to cyan. More...
 
#define TERMATTR_BG_WHITE   TERMATTR_ESC "[47m"
 Set text background color to white. More...
 
#define TERMATTR_BG_NORMAL   TERMATTR_ESC "[49m"
 Set text background color to default. More...
 
#define TERMATTR_LINECHARS_ON   TERMATTR_ESC "(0"
 Turn on alternate (line drawing) character set. More...
 
#define TERMATTR_LINECHARS_OFF   TERMATTR_ESC "(B"
 Turn off alternate (line drawing) character set. More...
 
#define TERMATTR_CLEAR_SCREEN   TERMATTR_ESC "[2J"
 Clear the screen. More...
 
#define TERMATTR_CLEAR_LINE   TERMATTR_ESC "[2K"
 Clear the line at the cursor position. More...
 
#define TERMATTR_CURSOR(Y, X)   TERMATTR_ESC "[" #Y ";" #X "H"
 Move the cursor to row Y, column X. More...
 
#define TERMATTR_CURSOR_UP(N)   TERMATTR_ESC "[" #N "A"
 Move the cursor up N lines. More...
 
#define TERMATTR_CURSOR_DOWN(N)   TERMATTR_ESC "[" #N "B"
 Move the cursor down N lines. More...
 
#define TERMATTR_CURSOR_RIGHT(N)   TERMATTR_ESC "[" #N "C"
 Move the cursor right N characters. More...
 
#define TERMATTR_CURSOR_LEFT(N)   TERMATTR_ESC "[" #N "D"
 Move the cursor left N characters. More...
 
#define TERMATTR_CURSOR_HOME   TERMATTR_ESC "[H"
 Move the cursor to home position. More...
 
#define TERMATTR_SCROLL_UP   TERMATTR_ESC "D"
 Scroll the screen up one line. More...
 
#define TERMATTR_SCROLL_DOWN   TERMATTR_ESC "M"
 Scroll the screen down one line. More...
 

Macro Definition Documentation

◆ TERMATTR_BG_BLACK

#define TERMATTR_BG_BLACK   TERMATTR_ESC "[40m"

Set text background color to black.

◆ TERMATTR_BG_BLUE

#define TERMATTR_BG_BLUE   TERMATTR_ESC "[44m"

Set text background color to blue.

◆ TERMATTR_BG_CYAN

#define TERMATTR_BG_CYAN   TERMATTR_ESC "[46m"

Set text background color to cyan.

◆ TERMATTR_BG_GREEN

#define TERMATTR_BG_GREEN   TERMATTR_ESC "[42m"

Set text background color to green.

◆ TERMATTR_BG_MAGENTA

#define TERMATTR_BG_MAGENTA   TERMATTR_ESC "[45m"

Set text background color to magenta.

◆ TERMATTR_BG_NORMAL

#define TERMATTR_BG_NORMAL   TERMATTR_ESC "[49m"

Set text background color to default.

◆ TERMATTR_BG_RED

#define TERMATTR_BG_RED   TERMATTR_ESC "[41m"

Set text background color to red.

◆ TERMATTR_BG_WHITE

#define TERMATTR_BG_WHITE   TERMATTR_ESC "[47m"

Set text background color to white.

◆ TERMATTR_BG_YELLOW

#define TERMATTR_BG_YELLOW   TERMATTR_ESC "[43m"

Set text background color to yellow.

◆ TERMATTR_BLINK

#define TERMATTR_BLINK   TERMATTR_ESC "[5m"

Blinking font.

◆ TERMATTR_BOLD

#define TERMATTR_BOLD   TERMATTR_ESC "[1m"

Bold font.

◆ TERMATTR_CLEAR_LINE

#define TERMATTR_CLEAR_LINE   TERMATTR_ESC "[2K"

Clear the line at the cursor position.

◆ TERMATTR_CLEAR_SCREEN

#define TERMATTR_CLEAR_SCREEN   TERMATTR_ESC "[2J"

Clear the screen.

◆ TERMATTR_CURSOR

#define TERMATTR_CURSOR (   Y,
 
)    TERMATTR_ESC "[" #Y ";" #X "H"

Move the cursor to row Y, column X.

◆ TERMATTR_CURSOR_DOWN

#define TERMATTR_CURSOR_DOWN (   N)    TERMATTR_ESC "[" #N "B"

Move the cursor down N lines.

◆ TERMATTR_CURSOR_HOME

#define TERMATTR_CURSOR_HOME   TERMATTR_ESC "[H"

Move the cursor to home position.

◆ TERMATTR_CURSOR_LEFT

#define TERMATTR_CURSOR_LEFT (   N)    TERMATTR_ESC "[" #N "D"

Move the cursor left N characters.

◆ TERMATTR_CURSOR_RIGHT

#define TERMATTR_CURSOR_RIGHT (   N)    TERMATTR_ESC "[" #N "C"

Move the cursor right N characters.

◆ TERMATTR_CURSOR_UP

#define TERMATTR_CURSOR_UP (   N)    TERMATTR_ESC "[" #N "A"

Move the cursor up N lines.

◆ TERMATTR_DIM

#define TERMATTR_DIM   TERMATTR_ESC "[2m"

Dim (half-intensity) font.

◆ TERMATTR_ESC

#define TERMATTR_ESC   "\033"

Terminal control escape character.

◆ TERMATTR_FG_BLACK

#define TERMATTR_FG_BLACK   TERMATTR_ESC "[30m"

Set text foreground color to black.

◆ TERMATTR_FG_BLUE

#define TERMATTR_FG_BLUE   TERMATTR_ESC "[34m"

Set text foreground color to blue.

◆ TERMATTR_FG_CYAN

#define TERMATTR_FG_CYAN   TERMATTR_ESC "[36m"

Set text foreground color to cyan.

◆ TERMATTR_FG_GREEN

#define TERMATTR_FG_GREEN   TERMATTR_ESC "[32m"

Set text foreground color to green.

◆ TERMATTR_FG_MAGENTA

#define TERMATTR_FG_MAGENTA   TERMATTR_ESC "[35m"

Set text foreground color to magenta.

◆ TERMATTR_FG_NORMAL

#define TERMATTR_FG_NORMAL   TERMATTR_ESC "[39m"

Set text foreground color to default.

◆ TERMATTR_FG_RED

#define TERMATTR_FG_RED   TERMATTR_ESC "[31m"

Set text foreground color to red.

◆ TERMATTR_FG_WHITE

#define TERMATTR_FG_WHITE   TERMATTR_ESC "[37m"

Set text foreground color to white.

◆ TERMATTR_FG_YELLOW

#define TERMATTR_FG_YELLOW   TERMATTR_ESC "[33m"

Set text foreground color to yellow.

◆ TERMATTR_INVERSE

#define TERMATTR_INVERSE   TERMATTR_ESC "[7m"

Inverse (reverse-video) font.

◆ TERMATTR_LINECHARS_OFF

#define TERMATTR_LINECHARS_OFF   TERMATTR_ESC "(B"

Turn off alternate (line drawing) character set.

◆ TERMATTR_LINECHARS_ON

#define TERMATTR_LINECHARS_ON   TERMATTR_ESC "(0"

Turn on alternate (line drawing) character set.

◆ TERMATTR_NORMAL

#define TERMATTR_NORMAL   TERMATTR_ESC "[0m"

Normal font.

◆ TERMATTR_SCROLL_DOWN

#define TERMATTR_SCROLL_DOWN   TERMATTR_ESC "M"

Scroll the screen down one line.

◆ TERMATTR_SCROLL_UP

#define TERMATTR_SCROLL_UP   TERMATTR_ESC "D"

Scroll the screen up one line.

◆ TERMATTR_UNDERLINE

#define TERMATTR_UNDERLINE   TERMATTR_ESC "[4m"

Underlined font.