changeset 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
files nnchat.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 */