mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
[linesigs_enable] fix logic
This commit is contained in:
parent
5a64f25ac2
commit
634a26abc1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user