magmax / python-readchar

Python library to read characters and key strokes
MIT License
143 stars 45 forks source link

It would be useful to be able to read from '/dev/tty' instead of stdin #18

Open talwrii opened 7 years ago

talwrii commented 7 years ago

Use case:

cat file | encrypyt.py --prompt-for-password-on-terminal

I don't know if this operation is meaningful in the windows terminal.

Cube707 commented 1 year ago

I will implment this by stealing most of the codebase from the getpass package from the std-lib at some point