Commit 2908d47

mo khan <mo.khan@gmail.com>
2021-01-12 15:27:31
disable SIGINT and SIGTSTP
1 parent 542c540
Changed files (1)
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);
 }