Re: Implementing C++'s getch() in Python

2019-05-26 Thread eryk sun
On 5/25/19, Paul Moore wrote: > > On Windows, the msvcrt module exposes getch: > https://docs.python.org/3.7/library/msvcrt.html#msvcrt.getch I suggest using msvcrt.getwch instead of msvcrt.getch. Both functions are limited to the basic multilingual plane (BMP, i.e. U+ -- U+), but getch

Re: Implementing C++'s getch() in Python

2019-05-26 Thread Shakti Kumar
On Sun, 26 May 2019 at 20:23, wrote: > > I've run getpass() on IDLE, Spyder, PyCharm and Mu. All with negative results. > > As Random832 pointed out, these IDEs cannot handle the stdout/stdin with getpass You should use a normal terminal (command prompt) on your windows for running this program.

Re: Implementing C++'s getch() in Python

2019-05-26 Thread binoythomas1108
I've run getpass() on IDLE, Spyder, PyCharm and Mu. All with negative results. -- https://mail.python.org/mailman/listinfo/python-list

Re: Implementing C++'s getch() in Python

2019-05-25 Thread Random832
On Sat, May 25, 2019, at 10:07, binoythomas1...@gmail.com wrote: > 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

Re: Implementing C++'s getch() in Python

2019-05-25 Thread Paul Moore
On Sat, 25 May 2019 at 12:12, wrote: > > I'm working on Python 3.7 under Windows. I need a way to input characters > without echoing them on screen, something that getch() did effectively in > C++. I read about the unicurses, ncurses and curses modules, which I was not > able to install using

Re: Implementing C++'s getch() in Python

2019-05-25 Thread binoythomas1108
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

Re: Implementing C++'s getch() in Python

2019-05-25 Thread Shakti Kumar
On Sat, 25 May 2019 at 4:43 PM wrote: > I'm working on Python 3.7 under Windows. I need a way to input characters > without echoing them on screen, something that getch() did effectively in > C++. try getpass module. Typically this would be, import getpass variable = getpass.getpass('your

Implementing C++'s getch() in Python

2019-05-25 Thread binoythomas1108
I'm working on Python 3.7 under Windows. I need a way to input characters without echoing them on screen, something that getch() did effectively in C++. I read about the unicurses, ncurses and curses modules, which I was not able to install using pip. Is there any way of getting this done? --