~mmach/netext73/busybox

« back to all changes in this revision

Viewing changes to console-tools/resize.c

  • Committer: mmach
  • Date: 2022-08-22 15:28:31 UTC
  • Revision ID: netbit73@gmail.com-20220822152831-vrsxgw6c75b03ujx
1.35.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
                + (1 << SIGTERM)
75
75
                + (1 << SIGALRM)
76
76
                , onintr);
77
 
        tcsetattr(STDERR_FILENO, TCSANOW, &new);
 
77
        /* Users report:
 
78
         *      The resize command messes up the terminal.
 
79
         *      In my case it looks like it is hanging and
 
80
         *      I need to press ctrl-c to get a prompt.
 
81
         *      Actually the program does not hang but just
 
82
         *      the terminal is messed up.
 
83
         * Replaced TCSANOW with TCSAFLUSH:
 
84
         * "the change occurs after all output written to fd
 
85
         * has been transmitted, and all input that has been
 
86
         * received but not read will be discarded before
 
87
         * the change is made.
 
88
         */
 
89
        tcsetattr(STDERR_FILENO, TCSAFLUSH, &new);
78
90
 
79
91
        /* save_cursor_pos 7
80
92
         * scroll_whole_screen [r