chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / ptty.c
index 98f1282775555933276025f9487587850cab2367..b8e77b189cc2e87b86b7c20fc624b07d0fd3f81d 100644 (file)
@@ -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);