[linesigs_enable] fix logic

This commit is contained in:
nick black 2021-09-16 01:38:03 -04:00
parent 5a64f25ac2
commit 634a26abc1

View File

@ -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;