$Log$
+ Revision 590.150 2002/03/13 03:34:38 nbryant
+ /* when running in curses mode, the scroll bar in most
+ xterm-style programs becomes useless, so it makes sense to
+ pause after a screenful of pages if the user has been idle
+ for a while. However, this is annoying to some of the users
+ who aren't in curses mode and tend to leave their clients
+ idle. keepalives become disabled, resulting in getting booted
+ when coming back to the idle session. but they probably have
+ a working scrollback in their terminal, so disable it in this
+ case:
+ */
+ if (!is_curses_enabled())
+ lines_printed = 0;
+
Revision 590.149 2002/03/12 23:34:37 nbryant
use ncurses in preference to curses if it's installed; it handles
background colors properly on dtterm, has a larger color pair palette,
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
scr_printf(":\n");
lines_printed++;
fmout(screenwidth, NULL, NULL, 1, screenheight, -1, 0);
+
+ /* when running in curses mode, the scroll bar in most
+ xterm-style programs becomes useless, so it makes sense to
+ pause after a screenful of pages if the user has been idle
+ for a while. However, this is annoying to some of the users
+ who aren't in curses mode and tend to leave their clients
+ idle. keepalives become disabled, resulting in getting booted
+ when coming back to the idle session. but they probably have
+ a working scrollback in their terminal, so disable it in this
+ case:
+ */
+ if (!is_curses_enabled())
+ lines_printed = 0;
}
scr_printf("\n---\n");
color(BRIGHT_WHITE);
void do_keepalive(void);
+int is_curses_enabled(void) {
+#ifdef HAVE_CURSES_H
+ return mainwindow != NULL;
+#else
+ return 0;
+#endif
+}
+
/*
* status_line() is a convenience function for writing a "typical"
* status line to the window.
void windows_new(void);
void windows_delete(void);
int scr_blockread(void);
+int is_curses_enabled(void);