Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to enable mouse in virtual console

📅 2014-Sep-02 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ gpm, mouse, virtual console ⬩ 📚 Archive

Mouse support is not enabled by default in virtual console (Ctrl+Alt+F1) in Ubuntu. This is a shame since many console applications like Vim or Htop have mouse support even when used at the terminal or TTY.

Enabling mouse support in virtual console is easy. Just install the General Purpose Mouse interface package:

$ sudo apt install gpm

No restart is needed since the package installation also starts the gpm server. Your mouse should start working immediately in terminal mode.

Tried with: GPM 1.20.4 and Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧