Skip to content

Commit

Permalink
fix not flushing stdout in MSYS (#19584)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidb80 committed Mar 6, 2022
1 parent b8f1347 commit ec9e51a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/impure/rdstdin.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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 {.
Expand Down

0 comments on commit ec9e51a

Please sign in to comment.