summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2021-01-12 08:27:31 -0700
committermo khan <mo.khan@gmail.com>2021-01-12 08:27:31 -0700
commit2908d4710cc05f1cb17f6f86382a7216cd8835a2 (patch)
treeeb52482d4ae924895a653cbcf36a069f21462445
parent542c54085bec06a6cd073dd80ba8f20b9f320216 (diff)
disable SIGINT and SIGTSTP
-rw-r--r--kilo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kilo.c b/kilo.c
index aec6a0d..621de9d 100644
--- a/kilo.c
+++ b/kilo.c
@@ -15,7 +15,7 @@ void enable_raw_mode() {
atexit(disable_raw_mode);
struct termios raw = orig_termios;
- raw.c_lflag &= ~(ECHO | ICANON);
+ raw.c_lflag &= ~(ECHO | ICANON | ISIG);
tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw);
}