aboutsummaryrefslogtreecommitdiff
path: root/bb.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-06-19 00:57:04 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-06-19 00:57:04 -0700
commit6f660ac2369ba7ba849af168c1a674daad18d8dc (patch)
tree9357dc2af90ff9015f83def4b58cac7c925dac04 /bb.c
parent199cda12226ced147f4d60495b170bf22b0294e5 (diff)
Fix for Esc key causing hang
Diffstat (limited to 'bb.c')
-rw-r--r--bb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bb.c b/bb.c
index 096938a..ec74496 100644
--- a/bb.c
+++ b/bb.c
@@ -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");