From 8efef8e088235b4e90747097194184ab5e9bbc94 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Thu, 25 Aug 2011 22:41:43 +0100 Subject: [PATCH] Ensure c_cc[VMIN] and c_cc[VTIME] are properly defined, because Solaris seems not to set them - Petr Pavlu --- termkey.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/termkey.c b/termkey.c index 921bb6c..18ad980 100644 --- a/termkey.c +++ b/termkey.c @@ -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 */