diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-08-25 22:41:43 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-08-25 22:41:43 +0100 |
commit | 8efef8e088235b4e90747097194184ab5e9bbc94 (patch) | |
tree | 42a29386b38401732019d87e5991714b34020353 /termkey.c | |
parent | 19122bb19530975e8baf96316df74836d17caeda (diff) | |
download | termo-8efef8e088235b4e90747097194184ab5e9bbc94.tar.gz termo-8efef8e088235b4e90747097194184ab5e9bbc94.tar.xz termo-8efef8e088235b4e90747097194184ab5e9bbc94.zip |
Ensure c_cc[VMIN] and c_cc[VTIME] are properly defined, because Solaris seems not to set them - Petr Pavlu
Diffstat (limited to 'termkey.c')
-rw-r--r-- | termkey.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -279,6 +279,8 @@ static TermKey *termkey_new_full(int fd, int flags, size_t buffsize, int waittim termios.c_iflag &= ~(IXON|INLCR|ICRNL); termios.c_lflag &= ~(ICANON|ECHO); + termios.c_cc[VMIN] = 1; + termios.c_cc[VTIME] = 0; if(flags & TERMKEY_FLAG_CTRLC) /* want no signal keys at all, so just disable ISIG */ |