$Log$
+ Revision 614.25 2004/02/09 22:40:57 error
+ * oops...also close the client on EOF/error on tty OUTPUT
+
Revision 614.24 2004/02/09 22:26:17 error
* Exit the citadel client when EOF reached on input - should prevent
a process from hanging around when a telnet connection dies unexpectedly
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
if (mainwindow) {
if (c == 7) beep();
- return ((waddch(mainwindow, c) == OK) ? c : EOF);
+ if (waddch(mainwindow, c) != OK)
+ logoff(NULL, 3);
+ return c;
}
#endif
- return putc(c, stdout);
+ if (putc(c, stdout) == EOF)
+ logoff(NULL, 3);
+ return c;
}