diff options
-rw-r--r-- | tmux.h | 4 | ||||
-rw-r--r-- | window.c | 13 |
2 files changed, 3 insertions, 14 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.65 2007-10-23 10:48:23 nicm Exp $ */ +/* $Id: tmux.h,v 1.66 2007-10-23 11:25:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -26,11 +26,9 @@ #include <poll.h> #include <stdarg.h> #include <stdio.h> -#include <termios.h> #include "array.h" -extern cc_t ttydefchars[]; extern char *__progname; #ifndef __dead @@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.20 2007-10-19 20:47:09 nicm Exp $ */ +/* $Id: window.c,v 1.21 2007-10-23 11:25:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -62,7 +62,6 @@ window_create( { struct window *w; struct winsize ws; - struct termios tio; int fd, mode; char *ptr, *copy; const char **entry; @@ -71,15 +70,7 @@ window_create( ws.ws_col = sx; ws.ws_row = sy; - memset(&tio, 0, sizeof tio); - tio.c_iflag = TTYDEF_IFLAG; - tio.c_oflag = TTYDEF_OFLAG; - tio.c_lflag = TTYDEF_LFLAG; - tio.c_cflag = TTYDEF_CFLAG; - memcpy(&tio.c_cc, ttydefchars, sizeof tio.c_cc); - cfsetspeed(&tio, TTYDEF_SPEED); - - switch (forkpty(&fd, NULL, &tio, &ws)) { + switch (forkpty(&fd, NULL, NULL, &ws)) { case -1: return (NULL); case 0: |