Ensure c_cc[VMIN] and c_cc[VTIME] are properly defined, because Solaris seems not to set them - Petr Pavlu

This commit is contained in:
Paul LeoNerd Evans 2011-08-25 22:41:43 +01:00
parent 19122bb195
commit 8efef8e088
1 changed files with 2 additions and 0 deletions

View File

@ -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 */