mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 13:30:33 +00:00
Fix readPasswordFromStdin for Windows
This commit is contained in:
@@ -40,7 +40,7 @@ when defined(Windows):
|
||||
|
||||
password.setLen(0)
|
||||
var c: char
|
||||
echo prompt
|
||||
stdout.write(prompt)
|
||||
while true:
|
||||
c = getch().char
|
||||
case c
|
||||
|
||||
Reference in New Issue
Block a user