Good day! Please tell me how in the console, when using python, to make unbuffered input. Maybe there is a library for python type ncurses.h (used in C)?

1 answer 1

I recommend using the getch package with PyPI: pip install getch

It shows the following usage scenario:

 import getch # ... char = getch.getch() # User input, but not displayed on the screen # or char = getch.getche() # also displayed on the screen 

The library is cross-platform.