Rather than constructing an entire termios struct from ttydefaults.h, just let

forkpty do it and then alter the bits that should be changed after fork. A
little neater and more portable.
This commit is contained in:
Nicholas Marriott
2009-09-16 12:35:04 +00:00
parent a6dd9e8e7e
commit 5c60162e3c
6 changed files with 29 additions and 21 deletions

2
tmux.h
View File

@ -815,7 +815,7 @@ struct session {
#define SESSION_DEAD 0x2
int flags;
struct termios tio;
struct termios *tio;
struct environ environ;