fix not flushing stdout in MSYS (#19590)
I did this pull request according to what xflywind said: https://github.com/nim-lang/Nim/pull/19584#issuecomment-1060085141
This commit is contained in:
parent
488e18f90d
commit
6454472938
1 changed files with 1 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ when defined(windows):
|
||||||
tags: [ReadIOEffect, WriteIOEffect].} =
|
tags: [ReadIOEffect, WriteIOEffect].} =
|
||||||
## Reads a line from stdin.
|
## Reads a line from stdin.
|
||||||
stdout.write(prompt)
|
stdout.write(prompt)
|
||||||
|
stdout.flushFile()
|
||||||
result = readLine(stdin)
|
result = readLine(stdin)
|
||||||
|
|
||||||
proc readLineFromStdin*(prompt: string, line: var string): bool {.
|
proc readLineFromStdin*(prompt: string, line: var string): bool {.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue