Fix for Esc key causing hang

This commit is contained in:
Bruce Hill 2019-06-19 00:57:04 -07:00
parent 199cda1222
commit 6f660ac236

2
bb.c
View File

@ -193,7 +193,7 @@ void init_term(void)
}
memcpy(&bb_termios, &orig_termios, sizeof(bb_termios));
cfmakeraw(&bb_termios);
bb_termios.c_cc[VMIN] = 1;
bb_termios.c_cc[VMIN] = 0;
bb_termios.c_cc[VTIME] = 1;
if (tcsetattr(fileno(tty_out), TCSAFLUSH, &bb_termios) == -1)
err("Couldn't tcsetattr");