From d6c2a27d3304842fab285a4217518046b57b771b Mon Sep 17 00:00:00 2001 From: james <> Date: Wed, 27 Feb 2008 09:42:22 +0000 Subject: *** empty log message *** --- src/ptty.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/ptty.c') diff --git a/src/ptty.c b/src/ptty.c index b2e5d0f..fba3202 100644 --- a/src/ptty.c +++ b/src/ptty.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.14 2008/02/27 09:42:22 james + * *** empty log message *** + * * Revision 1.13 2008/02/27 01:31:38 james * *** empty log message *** * @@ -143,7 +146,7 @@ ptty_write (TTY * _t, void *buf, int len) } TTY * -ptty_open (char *path, char *argv[], int width) +ptty_open (char *path, char *argv[], CRT_Pos *size) { PTTY *t; pid_t child; @@ -155,8 +158,8 @@ ptty_open (char *path, char *argv[], int width) client_termios (&ctermios); - winsize.ws_row = VT102_ROWS; - winsize.ws_col = width ? width : VT102_COLS_80; + winsize.ws_row = size ? size->y :VT102_ROWS; + winsize.ws_col = size ? size->x : VT102_COLS_80; child = forkpty (&fd, name, &ctermios, &winsize); -- cgit v1.2.3