From 6e99f8ab857218d0fb42d93a3bcec17397476497 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Sat, 28 May 2011 11:55:46 +0100 Subject: Ignore VDSUSP as a signal-sending key too, if platform defines it --- termkey.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/termkey.c b/termkey.c index c4ee594..4336996 100644 --- a/termkey.c +++ b/termkey.c @@ -287,6 +287,10 @@ static TermKey *termkey_new_full(int fd, int flags, size_t buffsize, int waittim /* Disable Ctrl-\==VQUIT and Ctrl-D==VSUSP but leave Ctrl-C as SIGINT */ termios.c_cc[VQUIT] = _POSIX_VDISABLE; termios.c_cc[VSUSP] = _POSIX_VDISABLE; + /* Some OSes have Ctrl-Y==VDSUSP */ +#ifdef VDSUSP + termios.c_cc[VDSUSP] = _POSIX_VDISABLE; +#endif } tcsetattr(fd, TCSANOW, &termios); -- cgit v1.2.3-70-g09d2