hidden input?

Jason F. McBrayer jmcbray at carcosa.net
Mon Jul 24 11:05:34 EDT 2000


>>>>> "BP" == Bjorn Pettersen <bjorn at roguewave.com> writes:

BP> Ben Wolfson wrote:
>> 
>> Is there a way to get input not echoed to the screen in Python, as in the
non-standard functions kbhit() and getch() in C and C++?

BP> import msvcrt

...

Or if you're on Unix, see the documentation for the termios module.
And for the obvious use of this, the getpass module works on mac,
unix, and winders.
-- 
+-----------------------------------------------------------+
| Jason F. McBrayer                    jmcbray at carcosa.net  |
| A flower falls, even though we love it; and a weed grows, |
| even though we do not love it.            -- Dogen        |



More information about the Python-list mailing list