Check if VDSUSP exists

master
C. McEnroe 2020-02-11 03:42:06 -05:00
parent 40892a7415
commit 2404e15e72
1 changed files with 2 additions and 0 deletions

2
ui.c
View File

@ -176,7 +176,9 @@ static void acquireKeys(void) {
term.c_iflag &= ~IXON; term.c_iflag &= ~IXON;
term.c_cc[VINTR] = _POSIX_VDISABLE; term.c_cc[VINTR] = _POSIX_VDISABLE;
term.c_cc[VSUSP] = _POSIX_VDISABLE; term.c_cc[VSUSP] = _POSIX_VDISABLE;
#ifdef VDSUSP
term.c_cc[VDSUSP] = _POSIX_VDISABLE; term.c_cc[VDSUSP] = _POSIX_VDISABLE;
#endif
term.c_cc[VDISCARD] = _POSIX_VDISABLE; term.c_cc[VDISCARD] = _POSIX_VDISABLE;
error = tcsetattr(STDOUT_FILENO, TCSADRAIN, &term); error = tcsetattr(STDOUT_FILENO, TCSADRAIN, &term);
if (error) err(EX_OSERR, "tcsetattr"); if (error) err(EX_OSERR, "tcsetattr");