The getch module does single-char input by providing wrappers for the conio.h library functions getch() (gets a character from user input, no output - this is useful for password input) and getche() (also outputs to the screen), if conio.h does not exist, it uses a stub-library using termios.h and other headers to emulate this behaviour:
import getch # ... char = getch.getch() # User input, but not displayed on the screen # or char = getch.getche() # also displayed on the screen
Hint: On Windows, you can use:
import msvcrt # ... char = msvcrt.getch() # or, to display it on the screen char = msvcrt.getche()
as a standard library alternative to this module
Release files for getch 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | |
|---|---|---|---|
| getch-1.0.tar.gz | 1.3 kB | Details | |
| getch-1.0-python2.tar.gz | 1.2 kB | Details |
Release files / getch-1.0.tar.gz
| Download URL | getch-1.0.tar.gz |
|---|---|
| Size | 1.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6c22717c10051ce65b8fb7bddb171af705b1175e694a73be956990f6089d8b1
|
|
BLAKE2b-256 checksum How to use checksums |
cca4c696c05e0ff9d05b1886cb0210101083db7d330ff964a6d7cd98ad2b2064
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / getch-1.0-python2.tar.gz
| Download URL | getch-1.0-python2.tar.gz |
|---|---|
| Size | 1.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be451438f7a2b389f96753aea39b6ed2540a390f1b9a12badcbc110cf9a5ce7f
|
|
BLAKE2b-256 checksum How to use checksums |
56f7cde35f44d267df7122005c40f1a15cf5e3c60ffc83a2ab00d11d99e9d8c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |