add: if (need_resize){ need_resize = 0; wins_resize(); }
context: int main (int dont_care_argc, char *argv[]){   (void)dont_care_argc;   before(*argv);                                        //                 +-------------+   windows_stage1();                    //                 top (sic) slice   configs_read();                      //                 > spread etc, <   parse_args(&argv[1]);                //                 > lean stuff, <   whack_terminal();                    //                 > onions etc. <   windows_stage2();                    //                 as bottom slice                                        //                 +-------------+   signal(SIGALRM,  end_pgm);   signal(SIGHUP,   end_pgm);   signal(SIGINT,   end_pgm);   signal(SIGPIPE,  end_pgm);   signal(SIGQUIT,  end_pgm);   signal(SIGTERM,  end_pgm);   signal(SIGTSTP,  suspend);   signal(SIGTTIN,  suspend);   signal(SIGTTOU,  suspend);   signal(SIGCONT,  wins_resize);   signal(SIGWINCH, wins_resize);   for (;;) {      frame_make();      if (Msg_awaiting) show_msg(Msg_delayed);      if (Loops > 0) --Loops;      if (!Loops) end_pgm(0);      tv.tv_sec = Rc.delay_time;      tv.tv_usec = (Rc.delay_time - (int)Rc.delay_time) * 1000000;      if (Batch) {         select(0, NULL, NULL, NULL, &tv);  // ought to loop until done      } else {         long file_flags;         int rc;         char c;         fd_set fs;         FD_ZERO(&fs);         FD_SET(STDIN_FILENO, &fs);         file_flags = fcntl(STDIN_FILENO, F_GETFL);         if(file_flags==-1) file_flags=0;         fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK|file_flags);         // check 1st, in case tv zeroed (by sig handler) before it got set         rc = chin(0, &c, 1);         if (rc <= 0) {            // EOF is pretty much a "can't happen" except for a kernel bug.            // We should quickly die via SIGHUP, and thus not spin here.            // if (rc == 0) end_pgm(0); /* EOF from terminal */            fcntl(STDIN_FILENO, F_SETFL, file_flags);            select(1, &fs, NULL, NULL, &tv);            fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK|file_flags);         }         if (chin(0, &c, 1) > 0) {            fcntl(STDIN_FILENO, F_SETFL, file_flags);            do_key((unsigned)c);         } else {            fcntl(STDIN_FILENO, F_SETFL, file_flags);         }      }   }   return 0;}