aboutsummaryrefslogtreecommitdiffstats
path: root/src/ptty.c
diff options
context:
space:
mode:
authorjames <>2008-02-27 09:42:22 +0000
committerjames <>2008-02-27 09:42:22 +0000
commitd6c2a27d3304842fab285a4217518046b57b771b (patch)
treec2461f0ca793f2cc6704f5343b02c0d77b19b9a5 /src/ptty.c
parent331559e304d549308e45c84ed0ffe67b2ad42b65 (diff)
downloadsympathy-d6c2a27d3304842fab285a4217518046b57b771b.tar.gz
sympathy-d6c2a27d3304842fab285a4217518046b57b771b.tar.bz2
sympathy-d6c2a27d3304842fab285a4217518046b57b771b.zip
*** empty log message ***
Diffstat (limited to 'src/ptty.c')
-rw-r--r--src/ptty.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ptty.c b/src/ptty.c
index b2e5d0f..fba3202 100644
--- a/src/ptty.c
+++ b/src/ptty.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * 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 +146,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 +158,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);