#include <consoles.h>
Inheritance diagram for console_win:


Public Member Functions | |
| console_win (void) | |
| Console Win constructor. | |
| void | TextColor (console_color ForeColor, console_color BackColor) |
| Set the text color. | |
| void | TextColor (console_color ForeColor) |
| Set the text color. | |
| void | SetCursorPos (int x, int y) |
| Sets the cursor position. | |
| void | SaveCursorPos (void) |
| Save the cursor position. | |
| void | RestoreCursorPos (void) |
| Restore the cursor position. | |
| void | ClearScreen (void) |
| Clear the Screen. | |
Private Attributes | |
| COORD | m_SaveCoord |
| Saved cursor position. | |
| HANDLE | m_StdOut |
| Standard output handle. | |
Static Private Attributes | |
| const int | CONSOLE_COLOR [16] |
| Console colors. | |
|
|
Console Win constructor.
|
|
||||||||||||
|
Set the text color.
Implements console. |
|
|
Set the text color.
Implements console. |
|
||||||||||||
|
Sets the cursor position.
Implements console. |
|
|
Save the cursor position.
Implements console. |
|
|
Restore the cursor position.
Implements console. |
|
|
Clear the Screen.
Implements console. |
|
|
Initial value:
{
0,
FOREGROUND_RED,
FOREGROUND_GREEN,
FOREGROUND_BLUE,
FOREGROUND_GREEN|FOREGROUND_RED,
FOREGROUND_RED|FOREGROUND_BLUE,
FOREGROUND_BLUE|FOREGROUND_GREEN,
FOREGROUND_BLUE|FOREGROUND_GREEN|FOREGROUND_RED,
FOREGROUND_INTENSITY,
FOREGROUND_INTENSITY|FOREGROUND_RED,
FOREGROUND_INTENSITY|FOREGROUND_GREEN,
FOREGROUND_INTENSITY|FOREGROUND_BLUE,
FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_RED,
FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE,
FOREGROUND_INTENSITY|FOREGROUND_BLUE|FOREGROUND_GREEN,
FOREGROUND_INTENSITY|FOREGROUND_BLUE|FOREGROUND_GREEN|FOREGROUND_RED
}
|
|
|
Saved cursor position.
|
|
|
Standard output handle.
|
|
|
|