aboutsummaryrefslogtreecommitdiffstats
path: root/src/ptty.c
diff options
context:
space:
mode:
authorjames <>2008-02-27 01:31:14 +0000
committerjames <>2008-02-27 01:31:14 +0000
commit4add819b42c292ee2a6fc4aeda782a447b1bcf27 (patch)
tree17b7f7ce7e45c6c6262db7cfeb548a4d6f1006e1 /src/ptty.c
parent74feb0db53bf6ed2d53ca59e3aed001f1160e62a (diff)
downloadsympathy-4add819b42c292ee2a6fc4aeda782a447b1bcf27.tar.gz
sympathy-4add819b42c292ee2a6fc4aeda782a447b1bcf27.tar.bz2
sympathy-4add819b42c292ee2a6fc4aeda782a447b1bcf27.zip
*** empty log message ***
Diffstat (limited to 'src/ptty.c')
-rw-r--r--src/ptty.c7
1 files changed, 5 insertions, 2 deletions
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);