Mouse support in the CentOS/RHEL shell

To get mouse support in a local terminal, install gpm.

This is useful, as it allows you to highlight and select text in the cli, or in vim.

Instructions below:

$ sudo yum install gpm

Make sure the service is configured to start automatically:

$ sudo service gpm start
$ sudo chkconfig gpm on

It's not supposed to need a reboot, but it did for me in VMware Fusion.