How to enable mouse in virtual console

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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.