aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--termkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/termkey.c b/termkey.c
index 3966d5a..c95dbf4 100644
--- a/termkey.c
+++ b/termkey.c
@@ -285,8 +285,8 @@ static TermKey *termkey_new_full(int fd, int flags, size_t buffsize, int waittim
termios.c_lflag &= ~ISIG;
else {
/* Disable Ctrl-\==VQUIT and Ctrl-D==VSUSP but leave Ctrl-C as SIGINT */
- termios.c_cc[VQUIT] = 0;
- termios.c_cc[VSUSP] = 0;
+ termios.c_cc[VQUIT] = _POSIX_VDISABLE;
+ termios.c_cc[VSUSP] = _POSIX_VDISABLE;
}
tcsetattr(fd, TCSANOW, &termios);