#include <UnixConsoleOutput.hpp>
|
|
virtual | ~UnixConsoleOutput () |
| | Destructor; if a TTY device is detected, an attempt to reset the colors will be made.
|
| void | set_color (ConsoleOutput::Color color) |
| | Implements ConsoleOutput::set_color.
|
| void | set_style (uint32 style) |
| | Implements ConsoleOutput::set_style.
|
| void | endl () |
| | Implements ConsoleOutput::reset_colors.
|
|
| ConsoleOutput () |
| | Default constructor; initializes the output stream to use std::cerr (the standard error stream).
|
| | ConsoleOutput (std::ostream &os) |
| | Construct a console output object with a custom output stream.
|
| ConsoleOutput::Color | color () const |
| | Get the last color that was set.
|
| bool | use_color () const |
| | Get the current use state of colored output logging.
|
|
| bool | tty () const |
| | Check to see if we are running inside a TTY device (terminal).
|
|
| enum | Color {
FG_WHITE
, FG_RED
, FG_GREEN
, FG_BLUE
,
FG_MAGENTA
, FG_YELLOW
, FG_ORANGE
, FG_PURPLE
} |
| enum | : uint32 { STYLE_NONE = 0
, STYLE_BOLD = 0x1
, STYLE_UNDERLINED = 0x2
} |
| std::ostream & | out_ |
| | The output stream to use; i.e.: std::cout or std::cerr.
|
| ConsoleOutput::Color | lcolor_ |
| | The last color used.
|
◆ endl()
| void nom::UnixConsoleOutput::endl |
( |
| ) |
|
|
virtual |
◆ set_color()
◆ set_style()
| void nom::UnixConsoleOutput::set_style |
( |
uint32 | style | ) |
|
|
virtual |
◆ tty()
| bool nom::UnixConsoleOutput::tty |
( |
| ) |
const |
|
private |
Check to see if we are running inside a TTY device (terminal).
◆ COLOR_ENDL
| const std::string nom::UnixConsoleOutput::COLOR_ENDL = "\e[0m" |
|
private |
◆ COLOR_FG_BLUE
| const std::string nom::UnixConsoleOutput::COLOR_FG_BLUE = "\033[34m" |
|
private |
◆ COLOR_FG_GREEN
| const std::string nom::UnixConsoleOutput::COLOR_FG_GREEN = "\033[0;32m" |
|
private |
◆ COLOR_FG_MAGENTA
| const std::string nom::UnixConsoleOutput::COLOR_FG_MAGENTA = "\033[35m" |
|
private |
◆ COLOR_FG_ORANGE
| const std::string nom::UnixConsoleOutput::COLOR_FG_ORANGE = "\033[0;33m" |
|
private |
◆ COLOR_FG_PURPLE
| const std::string nom::UnixConsoleOutput::COLOR_FG_PURPLE = "\033[0;35m" |
|
private |
◆ COLOR_FG_RED
| const std::string nom::UnixConsoleOutput::COLOR_FG_RED = "\033[31m" |
|
private |
◆ COLOR_FG_YELLOW
| const std::string nom::UnixConsoleOutput::COLOR_FG_YELLOW = "\033[93m" |
|
private |
◆ COLOR_STYLE_BOLD
| const std::string nom::UnixConsoleOutput::COLOR_STYLE_BOLD = "\e[1;1m" |
|
private |
◆ COLOR_STYLE_UNDERLINED
| const std::string nom::UnixConsoleOutput::COLOR_STYLE_UNDERLINED = "\e[1;4m" |
|
private |
The documentation for this class was generated from the following file: