You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like getpass does not understand keys like backspace:
raku -e'use Terminal::Getpass; say getpass().ords'
# input, replace <BS> by hitting the backspace key: abc<BS><BS><BS>def
# output: (97 98 99 127 127 100 101 102)
# expected: (100 101 102)
Terminal::Readsecret handles this correctly:
raku -e'use Terminal::Readsecret; say getsecret("Password: ").ords'
# input, replace <BS> by hitting the backspace key: abc<BS><BS><BS>def
# output: (100 101 102)
This is on Linux, specifically Fedora 32. I've seen this with xterm and xfce4-terminal.
It would also be nice if ctrl+u was able to delete the whole line and other keys (like arrows) were ignored. I realize that starts getting complex though depending on the terminal mode used.
The text was updated successfully, but these errors were encountered:
It looks like getpass does not understand keys like backspace:
Terminal::Readsecret handles this correctly:
This is on Linux, specifically Fedora 32. I've seen this with xterm and xfce4-terminal.
It would also be nice if ctrl+u was able to delete the whole line and other keys (like arrows) were ignored. I realize that starts getting complex though depending on the terminal mode used.
The text was updated successfully, but these errors were encountered: