diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-04-24 20:25:35 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-04-24 20:25:35 +0200 |
commit | b95d1ed223eb95726e0490d21fd7bc869fe45ea7 (patch) | |
tree | 87363c1e7b2d3284ce245a268cc09125c72b2a1d /lib/impure/rdstdin.nim | |
parent | 6ca38472a13840906d6f113eb92c11a25db49224 (diff) | |
parent | e5a186a419920b91f785e2d783da856637472eed (diff) | |
download | Nim-b95d1ed223eb95726e0490d21fd7bc869fe45ea7.tar.gz |
Merge pull request #2601 from def-/fix-termios
Fix Termios wrapper
Diffstat (limited to 'lib/impure/rdstdin.nim')
-rw-r--r-- | lib/impure/rdstdin.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/impure/rdstdin.nim b/lib/impure/rdstdin.nim index 55f8c5d32..f4d00979c 100644 --- a/lib/impure/rdstdin.nim +++ b/lib/impure/rdstdin.nim @@ -135,7 +135,7 @@ else: var cur, old: Termios discard fd.tcgetattr(cur.addr) old = cur - cur.lflag = cur.lflag and not Tcflag(ECHO) + cur.c_lflag = cur.c_lflag and not Tcflag(ECHO) discard fd.tcsetattr(TCSADRAIN, cur.addr) stdout.write prompt result = stdin.readLine(password) |