diff options
author | james <> | 2008-02-27 01:31:14 +0000 |
---|---|---|
committer | james <> | 2008-02-27 01:31:14 +0000 |
commit | 4add819b42c292ee2a6fc4aeda782a447b1bcf27 (patch) | |
tree | 17b7f7ce7e45c6c6262db7cfeb548a4d6f1006e1 /src/ptty.c | |
parent | 74feb0db53bf6ed2d53ca59e3aed001f1160e62a (diff) | |
download | sympathy-4add819b42c292ee2a6fc4aeda782a447b1bcf27.tar.gz sympathy-4add819b42c292ee2a6fc4aeda782a447b1bcf27.tar.bz2 sympathy-4add819b42c292ee2a6fc4aeda782a447b1bcf27.zip |
*** empty log message ***
Diffstat (limited to 'src/ptty.c')
-rw-r--r-- | src/ptty.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |