# HG changeset patch # User Matti Hamalainen # Date 1290287524 -7200 # Node ID 4554f9abc6864074c7dd3dcfbd23f7df01185513 # Parent e1bfd5227a243e6620dd772d0daa02c02f106030 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. diff -r e1bfd5227a24 -r 4554f9abc686 nnchat.c --- a/nnchat.c Sat Nov 20 21:21:51 2010 +0200 +++ b/nnchat.c Sat Nov 20 23:12:04 2010 +0200 @@ -21,14 +21,15 @@ #ifdef __WIN32 #define SET_CONFIG_FILE "nnchat.txt" #define SET_DIR_SEPARATOR "\\" +#define SET_DELAY (0) #else #define SET_CONFIG_FILE ".nnchat" #define SET_DIR_SEPARATOR "/" +#define SET_DELAY (15) #endif #define SET_MIN_BACKBUF (1024) /* Backbuffer size (in lines) */ #define SET_MAX_HISTORY (16) /* Command history length */ -#define SET_DELAY (15) #define SET_KEEPALIVE (15*60) /* Ping/keepalive period in seconds */