~aritra1911/ansi_anim

949dcada3c816c4a4a9954409f6f4cc566d7e57c — Aritra Sarkar 3 years ago 4b693bc
Turn off canonical mode
1 files changed, 2 insertions(+), 1 deletions(-)

M main.c
M main.c => main.c +2 -1
@@ 18,7 18,8 @@ static inline void enable_raw_mode(void)
    tcgetattr(STDIN_FILENO, &orig_termios);
    raw = orig_termios;

    raw.c_lflag &= ~(ECHO); /* turn off echoing */
    /* turn off echoing and canonical mode */
    raw.c_lflag &= ~(ECHO | ICANON);

    tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw);
}