comparison nnchat.c @ 210:4554f9abc686

Change timeout() value for PDCurses/Windows to 0 to improve responsivity. 15ms seems to be far too long there, whereas it works well for NCurses/UNIX.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 20 Nov 2010 23:12:04 +0200
parents e1bfd5227a24
children c40329e95445
comparison
equal deleted inserted replaced
209:e1bfd5227a24 210:4554f9abc686
19 #include <curses.h> 19 #include <curses.h>
20 20
21 #ifdef __WIN32 21 #ifdef __WIN32
22 #define SET_CONFIG_FILE "nnchat.txt" 22 #define SET_CONFIG_FILE "nnchat.txt"
23 #define SET_DIR_SEPARATOR "\\" 23 #define SET_DIR_SEPARATOR "\\"
24 #define SET_DELAY (0)
24 #else 25 #else
25 #define SET_CONFIG_FILE ".nnchat" 26 #define SET_CONFIG_FILE ".nnchat"
26 #define SET_DIR_SEPARATOR "/" 27 #define SET_DIR_SEPARATOR "/"
28 #define SET_DELAY (15)
27 #endif 29 #endif
28 30
29 #define SET_MIN_BACKBUF (1024) /* Backbuffer size (in lines) */ 31 #define SET_MIN_BACKBUF (1024) /* Backbuffer size (in lines) */
30 #define SET_MAX_HISTORY (16) /* Command history length */ 32 #define SET_MAX_HISTORY (16) /* Command history length */
31 #define SET_DELAY (15)
32 #define SET_KEEPALIVE (15*60) /* Ping/keepalive period in seconds */ 33 #define SET_KEEPALIVE (15*60) /* Ping/keepalive period in seconds */
33 34
34 35
35 /* Options 36 /* Options
36 */ 37 */