fix not flushing stdout in MSYS (#19584)

discussed here https://forum.nim-lang.org/t/8975
This commit is contained in:
Hamid Bluri
2022-03-06 20:33:01 +03:30
committed by GitHub
parent b8f1347c99
commit ec9e51abe6

View File

@@ -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 {.