diff options
| author | mo khan <mo.khan@gmail.com> | 2021-01-12 08:27:31 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2021-01-12 08:27:31 -0700 |
| commit | 2908d4710cc05f1cb17f6f86382a7216cd8835a2 (patch) | |
| tree | eb52482d4ae924895a653cbcf36a069f21462445 | |
| parent | 542c54085bec06a6cd073dd80ba8f20b9f320216 (diff) | |
disable SIGINT and SIGTSTP
| -rw-r--r-- | kilo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
