diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-05-28 11:55:46 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-05-28 11:55:46 +0100 |
commit | 6e99f8ab857218d0fb42d93a3bcec17397476497 (patch) | |
tree | 6ab6783b517d363ceeb8656f56c3eee0295dfe4f | |
parent | d3f441330b9f1f71715cdfe2b181ee02552e47a6 (diff) | |
download | termo-6e99f8ab857218d0fb42d93a3bcec17397476497.tar.gz termo-6e99f8ab857218d0fb42d93a3bcec17397476497.tar.xz termo-6e99f8ab857218d0fb42d93a3bcec17397476497.zip |
Ignore VDSUSP as a signal-sending key too, if platform defines it
-rw-r--r-- | termkey.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |