Does single char input, like C getch/getche
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
getch-1.0.tar.gz
(1.3 kB
view details)
getch-1.0-python2.tar.gz
(1.2 kB
view details)
File details
Details for the file getch-1.0.tar.gz
.
File metadata
- Download URL: getch-1.0.tar.gz
- Upload date:
- Size: 1.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6c22717c10051ce65b8fb7bddb171af705b1175e694a73be956990f6089d8b1 |
|
MD5 | 57519f64807285bdfff8e7b62844d3ef |
|
BLAKE2b-256 | cca4c696c05e0ff9d05b1886cb0210101083db7d330ff964a6d7cd98ad2b2064 |
File details
Details for the file getch-1.0-python2.tar.gz
.
File metadata
- Download URL: getch-1.0-python2.tar.gz
- Upload date:
- Size: 1.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be451438f7a2b389f96753aea39b6ed2540a390f1b9a12badcbc110cf9a5ce7f |
|
MD5 | 586ea0f1f16aa094ff6a30736ba03c50 |
|
BLAKE2b-256 | 56f7cde35f44d267df7122005c40f1a15cf5e3c60ffc83a2ab00d11d99e9d8c4 |