diff --git a/tmux.h b/tmux.h index e4c5bfbe..bab0e934 100644 --- a/tmux.h +++ b/tmux.h @@ -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 @@ -26,11 +26,9 @@ #include #include #include -#include #include "array.h" -extern cc_t ttydefchars[]; extern char *__progname; #ifndef __dead diff --git a/window.c b/window.c index ff3530c9..ec33d7cd 100644 --- a/window.c +++ b/window.c @@ -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 @@ -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: