From: David Given Date: Sat, 17 Oct 2015 22:47:31 +0000 (+0200) Subject: Flush stdout before getting the user's response (otherwise the user never X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=82b5e49b0c16c6d77785629981492560f8906a34;p=FUZIX.git Flush stdout before getting the user's response (otherwise the user never sees anything). --- diff --git a/Applications/V7/games/arithmetic.c b/Applications/V7/games/arithmetic.c index 331e7624..acf292cb 100644 --- a/Applications/V7/games/arithmetic.c +++ b/Applications/V7/games/arithmetic.c @@ -25,6 +25,7 @@ void getline(char *s) rs = s; + fflush(stdout); while ((*rs = getchar()) == ' '); while (*rs != '\n') if (*rs == 0)