ROSE
0.11.145.0
|
ANSI Color specification for text written to a terminal.
Thread safety: This object uses no global state, but is otherwise not thread-safe except where noted.
#include <util/Sawyer/Message.h>
Public Member Functions | |
ColorSpec () | |
Constructs an object with default foreground and background colors. More... | |
ColorSpec (AnsiColor fg) | |
Constructs an object that specifies only a foreground color. More... | |
ColorSpec (AnsiColor fg, AnsiColor bg, bool bold) | |
Constructs an object with fully-specified colors. More... | |
bool | isDefault () const |
Returns true if this object is in its default-constructed state. More... | |
Public Attributes | |
AnsiColor | foreground |
Foreground color, or COLOR_DEFAULT. More... | |
AnsiColor | background |
Background color, or COLOR_DEFAULT. More... | |
boost::tribool | bold |
Use ANSI "bold" attribute? | |
|
inline |
|
inlineexplicit |
|
inline |
Returns true if this object is in its default-constructed state.
Definition at line 391 of file Message.h.
References Sawyer::Message::COLOR_DEFAULT.
AnsiColor Sawyer::Message::ColorSpec::foreground |
Foreground color, or COLOR_DEFAULT.
AnsiColor Sawyer::Message::ColorSpec::background |
Background color, or COLOR_DEFAULT.