ringabout
2024-07-20 11:40:38 +08:00
committed by GitHub
parent fd1e62a7e2
commit 2f5cfd6829

View File

@@ -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")