From 634a26abc1f03289be013408ec34a08d1ec43229 Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 16 Sep 2021 01:38:03 -0400 Subject: [PATCH] [linesigs_enable] fix logic --- src/lib/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/input.c b/src/lib/input.c index 79106996b..fc5eb8704 100644 --- a/src/lib/input.c +++ b/src/lib/input.c @@ -100,7 +100,7 @@ int notcurses_linesigs_enable(notcurses* n){ logerror("Couldn't preserve terminal state for %d (%s)\n", n->tcache.ttyfd, strerror(errno)); return -1; } - tios.c_lflag |= ~ISIG; + tios.c_lflag |= ISIG; if(tcsetattr(n->tcache.ttyfd, TCSANOW, &tios)){ logerror("Error disabling signals on %d (%s)\n", n->tcache.ttyfd, strerror(errno)); return -1;