|
CPPConsole
|
Go to the source code of this file.
Namespaces | |
| namespace | console |
| Namespace Containing all console commands. | |
Enumerations | |
| enum | Graphics { BOLD = 1 , DIM , ITALIC , UNDERLINE , BLINK , INVERT , HIDDEN , STRIKETHROUGH , BLACK = 30 , RED , GREEN , YELLOW , BLUE , MAGENTA , CYAN , WHITE , DEFAULT = 39 , BG_BLACK = 40 , BG_RED , BG_GREEN , BG_YELLOW , BG_BLUE , BG_MAGENTA , BG_CYAN , BG_WHITE , BG_DEFAULT = 49 , BRIGHT_BLACK = 90 , BRIGHT_RED , BRIGHT_GREEN , BRIGHT_YELLOW , BRIGHT_BLUE , BRIGHT_MAGENTA , BRIGHT_CYAN , BRIGHT_WHITE , BG_BRIGHT_BLACK = 100 , BG_BRIGHT_RED , BG_BRIGHT_GREEN , BG_BRIGHT_YELLOW , BG_BRIGHT_BLUE , BG_BRIGHT_MAGENTA , BG_BRIGHT_CYAN , BG_BRIGHT_WHITE } |
| Enumeration of builtin colors for ANSI escape codes, along with other graphics modes. More... | |
Functions | |
| std::string | bold (const std::string &str) |
| Returns a bolded string if ANSI is enabled. | |
| std::string | faint (const std::string &str) |
| Returns a faint/dim string if ANSI is enabled. | |
| std::string | italic (const std::string &str) |
| Returns an italicized string if ANSI is enabled. | |
| std::string | underline (const std::string &str) |
| Returns an underlined string if ANSI is enabled. | |
| std::string | blink (const std::string &str) |
| Returns a blinking string if ANSI is enabled. | |
| std::string | inverse (const std::string &str) |
| Returns a inversed/reversed string if ANSI is enabled. | |
| std::string | hidden (const std::string &str) |
| Returns a hidden string if ANSI is enabled. | |
| std::string | strikethrough (const std::string &str) |
| Returns a strikethough string if ANSI is enabled. | |
| void | setBold (bool set) |
| Sets the text to be bold or not. | |
| void | setFaint (bool set) |
| Sets the text to be faint/dim or not. | |
| void | setItalic (bool set) |
| Sets the text to be italicized or not. | |
| void | setUnderline (bool set) |
| Sets the text to be underlined or not. | |
| void | setBlink (bool set) |
| Sets the text to be blinking or not. | |
| void | setInverse (bool set) |
| Sets the text to be inversed/reversed or not. | |
| void | setHidden (bool set) |
| Sets the text to be hidden or not. | |
| void | setStrikethrough (bool set) |
| Sets the text to be strikethrough or not. | |
| void | set (std::initializer_list< Graphics > list) |
| std::string | set (const std::string &str, std::initializer_list< Graphics > list) |
| void | clearGraphics () |