stdin.read_passwd: Ability to fall back into normal mode if raw mode fails
Created by: untitaker
I want to pipe a password into my program (which uses TermRead.read_passwd
), but I can't do this because termion insists on entering raw mode.
Python's getpass
will print a warning if raw mode couldn't be entered: https://docs.python.org/3/library/getpass.html#module-getpass.
TBH, I can't imagine a usecase where I want to prevent users from entering a password just because e.g. the tty is borked, on the other hand I can understand if you don't want to silently ignore errors.