From a5a162b9c6f9c3672c6c1e0882d70191610943c8 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Thu, 6 Feb 2020 02:25:58 -0500 Subject: Disable SUSP Frees up C-z and suspending an IRC client is silly anyway. --- ui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ui.c b/ui.c index daa6dec..048eade 100644 --- a/ui.c +++ b/ui.c @@ -176,6 +176,7 @@ static void disableFlowControl(void) { int error = tcgetattr(STDOUT_FILENO, &term); if (error) err(EX_OSERR, "tcgetattr"); term.c_iflag &= ~IXON; + term.c_cc[VSUSP] = _POSIX_VDISABLE; term.c_cc[VDISCARD] = _POSIX_VDISABLE; error = tcsetattr(STDOUT_FILENO, TCSADRAIN, &term); if (error) err(EX_OSERR, "tcsetattr"); -- cgit 1.4.1-2-gfad0