Fix readPasswordFromStdin for Windows
This commit is contained in:
parent
9431b734b4
commit
18fb3a391c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue