Skip to main content

Display pressed keys in the terminal

Project description

⌨️ Terminal Key Monitor 📟

Show pressed keys in the terminal. Useful e.g. when recording asciinema screencasts.

termkeymonitor connects directly to a local input device using evdev.

📥 Installation

# from PyPI
pip install termkeymonitor
# directly from GitLab
pip install git+https://gitlab.com/nobodyinperson/termkeymonitor.git

❓ Usage

# use any of the below commands to invoke
termkeymonitor
python -m termkeymonitor
python3 -m termkeymonitor

🎥 Screencast

asciicast

⚠️ Caveats

  • no Windows and MacOS support (Apparently evdev only works on Linux... 😔, might need to use some other backend like pynput in the future)
  • needs a local keyboard connected so doesn't work as expected on remote machines (e.g. via SSH)
  • Make sure you have permissions to access the /dev/input/event* files (this normally means you need to add yourself to the input group)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

termkeymonitor-1.4.5.tar.gz (6.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page