Removed a few unneeded calls to scr_flush()
authorArt Cancro <ajc@citadel.org>
Mon, 15 Nov 2010 15:18:48 +0000 (10:18 -0500)
committerArt Cancro <ajc@citadel.org>
Mon, 15 Nov 2010 15:18:48 +0000 (10:18 -0500)
citadel/textclient/citadel.c
citadel/textclient/commands.c
citadel/textclient/messages.c

index 532f4467ffdcdabba736875c387d5f23f568caf1..91a2d786cb6c1c4ebaae0eb9b96532cc988033e2 100644 (file)
@@ -604,7 +604,6 @@ void forget_all_rooms_on(CtdlIPC *ipc, int ffloor)
        int r;                          /* IPC response code */
 
        scr_printf("Forgetting all rooms on %s...\n", &floorlist[ffloor][0]);
-       scr_flush();
        remove_march("_FLOOR_", ffloor);
        r = CtdlIPCKnownRooms(ipc, AllAccessibleRooms, ffloor, &flist, buf);
        if (r / 100 != 1) {
@@ -1408,7 +1407,6 @@ int shift(int argc, char **argv, int start, int count) {
 
 static void statusHook(char *s) {
        scr_printf(s);
-       scr_flush();
 }
 
 /*
@@ -1609,7 +1607,6 @@ int main(int argc, char **argv)
        get_serv_info(ipc, telnet_client_host);
        scr_printf("%-24s\n%s\n%s\n", ipc->ServInfo.software, ipc->ServInfo.humannode,
                   ipc->ServInfo.site_location);
-       scr_flush();
 
        screenwidth = 80;       /* default screen dimensions */
        screenheight = 24;
index 6371cb46e800fdcee5e58f76f19e1f103f35d768..7e5a80e884bdad868fff4ec038f3d20213ef39da 100644 (file)
@@ -1021,7 +1021,6 @@ int getcmd(CtdlIPC *ipc, char *argbuf)
        scr_printf("\n%s", room_name);
        color(DIM_WHITE);
        scr_printf("%c ", room_prompt(room_flags));
-       scr_flush();
 
        while (1) {
                ch = inkey();
@@ -1421,7 +1420,6 @@ void color(int colornum)
                                        (colornum & 7),
                                        rc_color_use_bg);
 
-               scr_flush();
        }
 }
 
@@ -1430,7 +1428,6 @@ void cls(int colornum)
        if (enable_color) {
                printf("\033[4%dm\033[2J\033[H\033[0m",
                                colornum ? colornum : rc_color_use_bg);
-               scr_flush();
        }
 }
 
index 3359d75144c51512192a159f77be4a89c7022e57..77ec79e62953c0047bd7c7bbdb970928f9fbc6c6 100644 (file)
@@ -1579,7 +1579,7 @@ RAGAIN:           pagin = ((arcflag == 0)
                if ((quotflag) || (arcflag)) {
                        screenwidth = hold_sw;
                }
-RMSGREAD:      scr_flush();
+RMSGREAD:
                highest_msg_read = msg_arr[a];
                if (quotflag) {
                        fclose(dest);
@@ -1729,7 +1729,6 @@ RMSGREAD: scr_flush();
                                scr_printf("\r%79s\r", "");
                        else
                                scr_printf("\n");
-                       scr_flush();
                }
 DONE_QUOTING:  switch (e) {
                case '?':