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-linux.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-linux.cpp')
| -rw-r--r-- | library/Console-linux.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/library/Console-linux.cpp b/library/Console-linux.cpp index 28d8d53c..125b6cc4 100644 --- a/library/Console-linux.cpp +++ b/library/Console-linux.cpp @@ -116,4 +116,10 @@ void Console::cursor(bool enable) { dfout <<"\033[?25l"; } +} + +void Console::msleep (unsigned int msec) +{ + if (msec > 1000) sleep(msec/1000000); + usleep((msec % 1000000) * 1000); }
\ No newline at end of file |
