From ec9e51abe6ab691c190ce6693ddc90ae8cf4eec1 Mon Sep 17 00:00:00 2001
From: Hamid Bluri
Date: Sun, 6 Mar 2022 20:33:01 +0330
Subject: [PATCH] fix not flushing stdout in `MSYS` (#19584)
discussed here https://forum.nim-lang.org/t/8975
---
lib/impure/rdstdin.nim | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/impure/rdstdin.nim b/lib/impure/rdstdin.nim
index 32048b1310..adc0e212d9 100644
--- a/lib/impure/rdstdin.nim
+++ b/lib/impure/rdstdin.nim
@@ -27,6 +27,7 @@ when defined(windows):
tags: [ReadIOEffect, WriteIOEffect].} =
## Reads a line from stdin.
stdout.write(prompt)
+ stdout.flushFile()
result = readLine(stdin)
proc readLineFromStdin*(prompt: string, line: var string): bool {.