Tell child initial window size. Fix combining char order flip

This commit is contained in:
Keith Winstein
2011-02-03 23:28:04 -05:00
parent 2812c7beaf
commit d4be42ac3d
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -140,6 +140,12 @@ void emulate_terminal( int fd, int debug_fd )
return;
}
/* tell child process */
if ( ioctl( fd, TIOCSWINSZ, &window_size ) < 0 ) {
perror( "ioctl TIOCSWINSZ" );
return;
}
/* open parser and terminal */
Parser::UTF8Parser parser;
Terminal::Emulator terminal( window_size.ws_col, window_size.ws_row );