chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / ptty.c
index b2e5d0f15783cd1bbd23508bfbcc9cf9f7b62bb8..3be35f22b34b4d2aa46e0272357b62c81c51197f 100644 (file)
@@ -10,6 +10,12 @@ static char rcsid[] = "$Id$";
 
 /*
  * $Log$
+ * Revision 1.15  2008/02/27 09:42:53  james
+ * *** empty log message ***
+ *
+ * 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 +149,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 +161,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);