* Makefile.in, configure.in, chkpwd.c, acconfig.h: support for
[citadel.git] / citadel / commands.c
index 2a5bd73d4ec291b64b0a2d974f391300c0ef2c8f..89f7fd99395d9d2a4a386212112ac4730b6b4df3 100644 (file)
@@ -158,6 +158,7 @@ int inkey(void) {           /* get a character from the keyboard, with   */
        time_t start_time, now;
        char inbuf[2];
 
+       fflush(stdout);
        time(&start_time);
        
        do {
@@ -168,7 +169,6 @@ int inkey(void) {           /* get a character from the keyboard, with   */
                 */
                do {
                        do_keepalive();
-                       fflush(stdout);
                        FD_ZERO(&rfds);
                        FD_SET(0,&rfds);
                        tv.tv_sec = S_KEEPALIVE;