diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-23 11:25:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-23 11:25:32 +0000 |
commit | ab02144e3d1ed4b3a421e63e5d0464c2cfc239b5 (patch) | |
tree | 19995df978db750967377bad1b9ab209370dcb12 /window.c | |
parent | 9a086da0812ea217cb046f5571eb473d3ea1a38b (diff) |
Don't need ttydefchars here.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -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: |