summary refs log tree commit diff stats
path: root/lib/impure/rdstdin.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-04-24 20:25:35 +0200
committerAndreas Rumpf <rumpf_a@web.de>2015-04-24 20:25:35 +0200
commitb95d1ed223eb95726e0490d21fd7bc869fe45ea7 (patch)
tree87363c1e7b2d3284ce245a268cc09125c72b2a1d /lib/impure/rdstdin.nim
parent6ca38472a13840906d6f113eb92c11a25db49224 (diff)
parente5a186a419920b91f785e2d783da856637472eed (diff)
downloadNim-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.nim2
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)