Implementing C++'s getch() in Python
random832 at fastmail.com
Sat May 25 15:37:16 EDT 2019
On Sat, May 25, 2019, at 10:07, binoythomas1108 at gmail.com wrote:
> Hi Shakti!
> Thanks for your response. I have tried getpass() but got the following warning:
> Warning (from warnings module):
> "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.
getpass works fine on the windows console. Are you running the script in an IDE such as IDLE, PyCharm, etc?
More information about the Python-list