getpass.getpass python function doesn't hide input
The following code should print "Password: " on the command line, then get user text input without displaying it on the screen.
import getpass passStr = getpass.getpass("Password: ")
It does hide input initially, but on pressing Enter, it then writes the entire password to the screen. (Expected output is nothing at all).
Updated by Albert Lee over 9 years ago
- Category changed from 10 to Desktop (JDS)
- Status changed from Resolved to Feedback
- Assignee changed from Ken Mays to OI JDS
- % Done changed from 100 to 80
Ken Mays wrote:
Tim - please use the runtime/python-32 package in our SFE repo for serious Python development.
That is utterly wrong.
However, I cannot reproduce this problem in oi_151a, using gnome-terminal with TERM=xterm or TERM=xterm-color and tmux with TERM=screen. This could have been resolved in a terminfo update. Please test this on oi_151a.