From 384befc18f81f42d2dd6e324a35904ad037b3af7 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 9 Feb 2014 22:35:18 +0800 Subject: [PATCH] Usermode/libc - Flush stdout on getchar --- Usermode/Libraries/libc.so_src/stdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Usermode/Libraries/libc.so_src/stdio.c b/Usermode/Libraries/libc.so_src/stdio.c index ac6abae1..e98ca42a 100644 --- a/Usermode/Libraries/libc.so_src/stdio.c +++ b/Usermode/Libraries/libc.so_src/stdio.c @@ -774,6 +774,7 @@ EXPORT int fgetc(FILE *fp) EXPORT int getchar(void) { + fflush(stdout); return fgetc(stdin); } -- 2.20.1