Terminal key press debugger
Project description
Simple terminal key press debugger.
termdbg echoes the bytes received directly from the terminal for debugging exactly what bytes or escape sequences a particular terminal is sending. The terminal is set to raw mode if possible.
termdbg’s output is intended for human consumption; the output format is not guaranteed and should not be parsed.
To exit, send the byte value 3. This is the ASCII encoding for ^C (End Of Text), which is sent by pressing CTRL-C for most terminals. If you are unable to exit, you can send SIGINT from a separate terminal.
Example usage:
$ termdbg 27, o33, 0x1B # F1 pressed, terminal emits three bytes 79, o117, 0x4F 80, o120, 0x50 27, o33, 0x1B # F2 pressed, terminal emits three bytes 79, o117, 0x4F 81, o121, 0x51 3, o3, 0x3 # Ctrl-C pressed, terminal emits ^C and termdbg quits $
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 Distribution
mir.termdbg-1.0.0.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for mir.termdbg-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bb893650d0682a4c82a4bf066ddbc265007bb473115a4577b30cc0a62cf154f |
|
MD5 | 145915c9106a8ef20893944c92d65eb7 |
|
BLAKE2b-256 | 1e0eaec980e929e60b58375f2c38a3a49c508b03b3865017ce75d7a353df3998 |