diff options
author | Florent <florent@napalu.ch> | 2018-05-06 10:56:40 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-05-06 10:56:40 +0200 |
commit | d3ad46702284ad248d2a27bb65812315168c4beb (patch) | |
tree | 57ad0ee22f5da351340c360b7bc07e4282d09a35 /lib/pure | |
parent | 26d89fa09c3a214c9c2107367c3d3fd76f7b8e1c (diff) | |
download | Nim-d3ad46702284ad248d2a27bb65812315168c4beb.tar.gz |
Fixes #7764 (#7767)
* Fixes #7764 * Change KEY_RECORD_EVENT filter * Update terminal.nim * Revert changes and modify readPasswordFromStdIn
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/terminal.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pure/terminal.nim b/lib/pure/terminal.nim index 002181a6f..5249e23c2 100644 --- a/lib/pure/terminal.nim +++ b/lib/pure/terminal.nim @@ -759,6 +759,10 @@ when defined(windows): x = runeLenAt(password.string, i) inc i, x password.string.setLen(max(password.len - x, 0)) + of chr(0x0): + # modifier key - ignore - for details see + # https://github.com/nim-lang/Nim/issues/7764 + continue else: password.string.add(toUTF8(c.Rune)) stdout.write "\n" |