mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 19:02:18 +00:00
fix not flushing stdout in MSYS (#19584)
discussed here https://forum.nim-lang.org/t/8975
This commit is contained in:
@@ -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 {.
|
||||
|
||||
Reference in New Issue
Block a user