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.1.0.tar.gz
(9.3 kB
view hashes)
Built Distribution
Close
Hashes for mir.termdbg-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4816512bdfa3f59a8a55b48ba2ad9c26f216a6359084d1e3fd35a4be7f3534cf |
|
MD5 | 0803aadbd22e97b0e76e3bbfc1d03c26 |
|
BLAKE2b-256 | eae064c8b9d868aab7aa7ec8ea864d6f4a47af956339deb3ede5c4f7e613b37a |