]> code.citadel.org Git - citadel.git/blobdiff - citadel/commands.c
* Exit the citadel client when EOF reached on input - should prevent
[citadel.git] / citadel / commands.c
index b33aeb07dcf3aafaa7bdf03bca9e68c84a1f0356..25b879907534e293b4a8d2b2fdb6a9681b8205de 100644 (file)
@@ -493,7 +493,7 @@ int inkey(void)
                /* At this point, there's input, so fetch it.
                 * (There's a hole in the bucket...)
                 */
-               a = scr_getc(SCR_NOBLOCK);
+               a = scr_getc(SCR_BLOCK);
                if (a == 127)
                        a = 8;
                if (a > 126)
@@ -507,7 +507,7 @@ int inkey(void)
 #ifndef DISABLE_CURSES
 #if defined(HAVE_CURSES_H) || defined(HAVE_NCURSES_H)
                if (a == ERR)
-                       a = 0;
+                       logoff(NULL, 3);
 #endif
 #endif