aboutsummaryrefslogtreecommitdiffstats
path: root/src/ptty.c
diff options
context:
space:
mode:
authorjames <>2008-02-24 00:42:53 +0000
committerjames <>2008-02-24 00:42:53 +0000
commit3240b828391da405d093356eae0b90af5abc7a32 (patch)
treef4dff70c3bc9ca1da2d855fe512571ff4a6ea29d /src/ptty.c
parent667353b64b552aff9e785a20ee915fb343a0dac9 (diff)
downloadsympathy-3240b828391da405d093356eae0b90af5abc7a32.tar.gz
sympathy-3240b828391da405d093356eae0b90af5abc7a32.tar.bz2
sympathy-3240b828391da405d093356eae0b90af5abc7a32.zip
*** empty log message ***
Diffstat (limited to 'src/ptty.c')
-rw-r--r--src/ptty.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/ptty.c b/src/ptty.c
index e268825..bddc56e 100644
--- a/src/ptty.c
+++ b/src/ptty.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.10 2008/02/24 00:42:53 james
+ * *** empty log message ***
+ *
* Revision 1.9 2008/02/23 13:05:58 staffcvs
* *** empty log message ***
*
@@ -137,19 +140,16 @@ ptty_open (char *path, char *argv[])
pid_t child;
char name[1024];
struct winsize winsize = { 0 };
- struct termios termios = { 0 };
+ struct termios ctermios = { 0 };
int fd;
char *default_argv[] = { "-", (char *) 0 };
- default_termios (&termios);
- cfsetispeed (&termios, B9600);
- cfsetospeed (&termios, B9600);
-
+ client_termios (&ctermios);
winsize.ws_row = VT102_ROWS;
winsize.ws_col = VT102_COLS;
- child = forkpty (&fd, name, &termios, &winsize);
+ child = forkpty (&fd, name, &ctermios, &winsize);
switch (child)
{
@@ -169,6 +169,16 @@ ptty_open (char *path, char *argv[])
set_nonblocking (fd);
+#if 0
+ {
+ struct termios termios = { 0 };
+
+ tcgetattr (fd, &termios);
+ default_termios (&termios);
+ tcsetattr (fd, TCSANOW, &termios);
+ }
+#endif
+
t = (PTTY *) malloc (sizeof (PTTY));
strncpy (t->name, name, sizeof (t->name));