fmout(screenwidth, NULL, listing, NULL, 1, screenheight, -1, 0);
free(listing);
- /* 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;
+ lines_printed = 0;
}
scr_printf("\n---\n");
color(BRIGHT_WHITE);
/* Space for a single word, which can be at most screenwidth */
word = (char *)calloc(1, width);
if (!word) {
- err_printf("Can't alloc memory to print message: %s!\n",
+ scr_printf("Can't alloc memory to print message: %s!\n",
strerror(errno));
logoff(NULL, 3);
}
if (fpin) {
buffer = load_message_from_file(fpin);
if (!buffer) {
- err_printf("Can't print message: %s!\n",
+ scr_printf("Can't print message: %s!\n",
strerror(errno));
logoff(NULL, 3);
}