mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
fixes nim secret not flushing stdout (#23862)
related to https://github.com/nim-lang/Nim/pull/19584 On Vscode wsl2 Before:  After 
This commit is contained in:
@@ -68,6 +68,7 @@ when not declared(readLineFromStdin):
|
||||
# fallback implementation:
|
||||
proc readLineFromStdin(prompt: string, line: var string): bool =
|
||||
stdout.write(prompt)
|
||||
stdout.flushFile()
|
||||
result = readLine(stdin, line)
|
||||
if not result:
|
||||
stdout.write("\n")
|
||||
|
||||
Reference in New Issue
Block a user