Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurrium committed Dec 12, 2022
1 parent edb6a9d commit fcaf9d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kilo.c
Expand Up @@ -15,8 +15,9 @@ void enableRawMode() {
atexit(disableRawMode);

struct termios raw = orig_termios;
raw.c_iflag &= ~(ICRNL | IXON);
raw.c_iflag &= ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON);
raw.c_oflag &= ~(OPOST);
raw.c_cflag |= ~(CS8);
raw.c_lflag &= ~(ECHO | ICANON | IEXTEN | ISIG);

tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw);
Expand Down

0 comments on commit fcaf9d7

Please sign in to comment.