00001 #pragma once
00002
00027 #ifndef __CONSOLE_H__
00028 #define __CONSOLE_H__
00029
00031 class console
00032 {
00033
00034 public:
00036 enum console_color
00037 {
00038 BLACK, RED, GREEN, BLUE, YELLOW, MAGENTA, CYAN, WHITE,
00039 BRIGHT_BLACK, BRIGHT_RED, BRIGHT_GREEN, BRIGHT_BLUE,
00040 BRIGHT_YELLOW, BRIGHT_MAGENTA, BRIGHT_CYAN, BRIGHT_WHITE
00041 };
00042
00043
00044 public:
00045 console(void);
00047 virtual void TextColor(console_color ForeColor, console_color BackColor)=0;
00049 virtual void TextColor(console_color ForeColor)=0;
00050 void DefaultColor(void);
00052 virtual void SetCursorPos(int x, int y)=0;
00054 virtual void SaveCursorPos(void)=0;
00056 virtual void RestoreCursorPos(void)=0;
00058 virtual void ClearScreen(void)=0;
00059 };
00060
00061
00062
00063 #endif // __CONSOLE_H__
00064