From dad0e5019cce4f66dddf148eda4e8042d386f013 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Tue, 24 May 2011 16:45:10 +0100 Subject: Use _POSIX_VDISABLE rather than hardcoded 0 to disable individual entries in termios.c_cc; most BSDs use 0xff rather than 0 for this value --- termkey.c | 4 ++-- 1 file 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); -- cgit v1.2.3-70-g09d2