… | |
… | |
646 | |
646 | |
647 | ws.ws_col = ncol; |
647 | ws.ws_col = ncol; |
648 | ws.ws_row = nrow; |
648 | ws.ws_row = nrow; |
649 | ws.ws_xpixel = width; |
649 | ws.ws_xpixel = width; |
650 | ws.ws_ypixel = height; |
650 | ws.ws_ypixel = height; |
651 | (void)ioctl (pty->pty, TIOCSWINSZ, &ws); |
651 | ioctl (pty->pty, TIOCSWINSZ, &ws); |
652 | |
652 | |
653 | #if 0 |
653 | #if 0 |
654 | // TIOCSWINSZ is supposed to do this automatically and correctly |
654 | // TIOCSWINSZ is supposed to do this automatically and correctly |
655 | if (cmd_pid) /* force through to the command */ |
655 | if (cmd_pid) /* force through to the command */ |
656 | kill (-cmd_pid, SIGWINCH); |
656 | kill (-cmd_pid, SIGWINCH); |