handle_winch
void handle_winch(int);
handle_winch(SIGWINCH);
if (isatty(0)) signal(SIGWINCH, handle_winch);