Implementing C++'s getch() in Python

binoythomas1108 at gmail.com binoythomas1108 at gmail.com
Sat May 25 10:00:43 EDT 2019


Hi Shakti!

Thanks for your response. I have tried getpass() but got the following warning:

Warning (from warnings module):
  File "C:\Users\Binoy\AppData\Local\Programs\Python\Python37-32\lib\getpass.py", line 100
    return fallback_getpass(prompt, stream)
GetPassWarning: Can not control echo on the terminal.
Warning: Password input may be echoed.

And true enough, the input string is echoed. I saw a video where getpass() worked on Linux. So, probably, its a Windows thing.

Still looking for a solution to the same on Windows. 



More information about the Python-list mailing list