Treat resize as another Action

This commit is contained in:
Keith Winstein
2011-02-04 01:52:43 -05:00
parent c4366234b1
commit 2edf66c9e9
4 changed files with 24 additions and 4 deletions
+2 -1
View File
@@ -207,7 +207,8 @@ void emulate_terminal( int fd, int debug_fd )
}
/* tell emulator */
terminal.resize( window_size.ws_col, window_size.ws_row );
Parser::Resize r( window_size.ws_col, window_size.ws_row );
r.act_on_terminal( &terminal );
/* tell child process */
if ( ioctl( fd, TIOCSWINSZ, &window_size ) < 0 ) {