C++ Utilities
4.6.1
Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities
|
Encapsulates functions for formatted terminal output using ANSI escape codes. More...
Enumerations | |
enum | Color : char { Color::Black = '0', Color::Red, Color::Green, Color::Yellow, Color::Blue, Color::Purple, Color::Cyan, Color::White } |
enum | ColorContext : char { ColorContext::Foreground = '3', ColorContext::Background = '4' } |
enum | TextAttribute : char { TextAttribute::Reset = '0', TextAttribute::Bold = '1', TextAttribute::Dim = '2', TextAttribute::Italic = '3', TextAttribute::Underscore = '4', TextAttribute::Blink = '5', TextAttribute::ReverseVideo = '7', TextAttribute::Concealed = '8' } |
enum | Direction : char { Direction::Up = 'A', Direction::Down = 'B', Direction::Forward = 'C', Direction::Backward = 'D' } |
Functions | |
void | setStyle (std::ostream &stream, TextAttribute displayAttribute=TextAttribute::Reset) |
void | setStyle (std::ostream &stream, Color color, ColorContext context=ColorContext::Foreground, TextAttribute displayAttribute=TextAttribute::Reset) |
void | setStyle (std::ostream &stream, Color foregroundColor, Color backgroundColor, TextAttribute displayAttribute=TextAttribute::Reset) |
void | resetStyle (std::ostream &stream) |
void | setCursor (std::ostream &stream, unsigned int row=0, unsigned int col=0) |
void | moveCursor (std::ostream &stream, unsigned int cells, Direction direction) |
void | saveCursor (std::ostream &stream) |
void | restoreCursor (std::ostream &stream) |
void | eraseDisplay (std::ostream &stream) |
void | eraseLine (std::ostream &stream) |
Encapsulates functions for formatted terminal output using ANSI escape codes.
|
strong |
Enumerator | |
---|---|
Black | |
Red | |
Green | |
Yellow | |
Blue | |
Purple | |
Cyan | |
White |
Definition at line 14 of file ansiescapecodes.h.
|
strong |
Enumerator | |
---|---|
Foreground | |
Background |
Definition at line 26 of file ansiescapecodes.h.
|
strong |
Enumerator | |
---|---|
Up | |
Down | |
Forward | |
Backward |
Definition at line 44 of file ansiescapecodes.h.
|
strong |
Enumerator | |
---|---|
Reset | |
Bold | |
Dim | |
Italic | |
Underscore | |
Blink | |
ReverseVideo | |
Concealed |
Definition at line 32 of file ansiescapecodes.h.
|
inline |
Definition at line 98 of file ansiescapecodes.h.
|
inline |
Definition at line 103 of file ansiescapecodes.h.
|
inline |
Definition at line 83 of file ansiescapecodes.h.
|
inline |
Definition at line 73 of file ansiescapecodes.h.
|
inline |
Definition at line 93 of file ansiescapecodes.h.
|
inline |
Definition at line 88 of file ansiescapecodes.h.
|
inline |
Definition at line 78 of file ansiescapecodes.h.
|
inline |
Definition at line 52 of file ansiescapecodes.h.
|
inline |
Definition at line 57 of file ansiescapecodes.h.
|
inline |
Definition at line 65 of file ansiescapecodes.h.