diff options
| author | Petr Mrázek | 2011-06-25 05:35:29 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-06-25 05:35:29 +0200 |
| commit | 6fd7d42f0093ec5d057f35cd0a652c9ad254fc30 (patch) | |
| tree | 7638dbc5d1bd03d1fb21d3dd22511b22b16b9b20 /library/Console-windows.cpp | |
| parent | 0bb097296a8e980c0f3282716d1887923294307d (diff) | |
| download | dfhack-6fd7d42f0093ec5d057f35cd0a652c9ad254fc30.tar.gz dfhack-6fd7d42f0093ec5d057f35cd0a652c9ad254fc30.tar.bz2 dfhack-6fd7d42f0093ec5d057f35cd0a652c9ad254fc30.tar.xz | |
Plugin manager, reworked kittens and reveal.
Diffstat (limited to 'library/Console-windows.cpp')
| -rw-r--r-- | library/Console-windows.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/library/Console-windows.cpp b/library/Console-windows.cpp index 7e5a232d..63035c6d 100644 --- a/library/Console-windows.cpp +++ b/library/Console-windows.cpp @@ -96,14 +96,17 @@ Console::Console() clear(); // result is a terminal controlled by the parasitic code! } + Console::~Console() { FreeConsole(); } + void Console::clear() { system("cls"); } + void Console::gotoxy(int x, int y) { COORD coord = {x-1, y-1}; // Windows uses 0-based coordinates @@ -136,4 +139,9 @@ void Console::cursor(bool enable) structCursorInfo.bVisible = FALSE; SetConsoleCursorInfo( hConsoleOutput, &structCursorInfo ); } +} + +void Console::msleep (unsigned int msec) +{ + Sleep(msec); }
\ No newline at end of file |
