X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=sympathy.git;a=blobdiff_plain;f=src%2Fptty.c;h=b8e77b189cc2e87b86b7c20fc624b07d0fd3f81d;hp=98f1282775555933276025f9487587850cab2367;hb=95d068f1b4e8100d6501944eda3bd9ff73460514;hpb=ad0765aba1a59c7fd8a9300e3d47bad7d68e6477;ds=sidebyside diff --git a/src/ptty.c b/src/ptty.c index 98f1282..b8e77b1 100644 --- a/src/ptty.c +++ b/src/ptty.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.12 2008/02/27 01:31:14 james + * *** empty log message *** + * * Revision 1.11 2008/02/26 23:23:17 james * *** empty log message *** * @@ -137,7 +140,7 @@ ptty_write (TTY * _t, void *buf, int len) } TTY * -ptty_open (char *path, char *argv[]) +ptty_open (char *path, char *argv[],int width) { PTTY *t; pid_t child; @@ -150,7 +153,7 @@ ptty_open (char *path, char *argv[]) client_termios (&ctermios); winsize.ws_row = VT102_ROWS; - winsize.ws_col = VT102_COLS_80; + winsize.ws_col = width ? width:VT102_COLS_80; child = forkpty (&fd, name, &ctermios, &winsize);