From fca5429ae7e00ad155796912ae66711d1ff8c944 Mon Sep 17 00:00:00 2001 From: arichi Date: Mon, 13 May 2019 23:52:23 +0800 Subject: [PATCH] Flush every local echo char Flush stdout at every char in case it happens to be buffered. --- src/tty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tty.c b/src/tty.c index bee6f9f..9706789 100644 --- a/src/tty.c +++ b/src/tty.c @@ -535,6 +535,7 @@ static void optional_local_echo(char c) if (!option.local_echo) return; print(c); + fflush(stdout); if (option.log) log_write(c); }