From 1d9d19d76ba7952a86b8266e2cfdced114fca883 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 6 Sep 2016 15:47:40 +0200 Subject: [PATCH] client: flush stdout after printing prompt Apparently fgets() doesn't flush stdout in some libc implementations. --- client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client.c b/client.c index 477f548..314b3a3 100644 --- a/client.c +++ b/client.c @@ -125,6 +125,7 @@ read_line(void) return( line ); #else printf("%s", prompt); + fflush(stdout); #endif } if (fgets(line, sizeof(line), stdin)) {