|
MIRA
|
Enumerations | |
| enum | TextColor { DEFAULT = 0, BLACK, DARKGREY, LIGHTGREY, WHITE, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, LIGHTRED, LIGHTGREEN, LIGHTYELLOW, LIGHTBLUE, LIGHTMAGENTA, LIGHTCYAN } |
| enum | StdOutput { STD_OUTPUT, STD_ERROR } |
Functions | |
| void | enableEcho (bool enable=true) |
| Enables or disables echo for text that is typed when using std input, e.g. More... | |
| void | setTextColor (TextColor color=DEFAULT, StdOutput output=STD_OUTPUT) |
| Sets the color of the console text as specified. More... | |
| int | getWidth () |
| Returns the number of columns of the console, i.e. More... | |
| enum TextColor |
| enum StdOutput |
| void mira::console::enableEcho | ( | bool | enable = true | ) |
Enables or disables echo for text that is typed when using std input, e.g.
cin. Disabling the echo is useful when the user types passwords, etc.
| void mira::console::setTextColor | ( | TextColor | color = DEFAULT, |
| StdOutput | output = STD_OUTPUT |
||
| ) |
Sets the color of the console text as specified.
| [in] | color | The color for the console text |
| [in] | output | The console where the color change should be applied |
| int mira::console::getWidth | ( | ) |
Returns the number of columns of the console, i.e.
the width of the text area.
1.8.14