77
tcsetattr(STDERR_FILENO, TCSANOW, &new);
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
89
tcsetattr(STDERR_FILENO, TCSAFLUSH, &new);
79
91
/* save_cursor_pos 7
80
92
* scroll_whole_screen [r