diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/nTox.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/nTox.c b/testing/nTox.c index 937d9d54..acc0be89 100644 --- a/testing/nTox.c +++ b/testing/nTox.c | |||
@@ -1,4 +1,12 @@ | |||
1 | #include "nTox.h" | 1 | #include "nTox.h" |
2 | |||
3 | #ifdef WIN32 | ||
4 | #define c_sleep(x) Sleep(1*x) | ||
5 | #else | ||
6 | #include <unistd.h> | ||
7 | #define c_sleep(x) usleep(1000*x) | ||
8 | #endif | ||
9 | |||
2 | char lines[HISTORY][STRING_LENGTH]; | 10 | char lines[HISTORY][STRING_LENGTH]; |
3 | char line[STRING_LENGTH]; | 11 | char line[STRING_LENGTH]; |
4 | int x,y; | 12 | int x,y; |
@@ -212,6 +220,7 @@ int main(int argc, char *argv[]) | |||
212 | } | 220 | } |
213 | } | 221 | } |
214 | doMessenger(); | 222 | doMessenger(); |
223 | c_sleep(1); | ||
215 | do_refresh(); | 224 | do_refresh(); |
216 | } | 225 | } |
217 | endwin(); | 226 | endwin(); |