]> code.citadel.org Git - citadel.git/blobdiff - citadel/textclient/commands.c
Removed err_* and sln_* functions; replaced all calls with scr_* functions.
[citadel.git] / citadel / textclient / commands.c
index 7999c62533c7cb1409a96d73324e96811a042bfd..9ab121e00cbfd7e7bd5774435ec036d3c69ae918 100644 (file)
@@ -331,18 +331,7 @@ void print_instant(void)
                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);
@@ -1363,7 +1352,7 @@ int fmout(
        /* 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);
        }
@@ -1372,7 +1361,7 @@ int fmout(
        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);
                }