Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've used PuTTY to connect via SSH to my FreeBSD- and Ubuntu-servers for several years, and I always move the cursor by using the keyboard. However, I wonder if it's possible to move the cursor in PuTTY by clicking on a target position with the mouse? It could be useful sometimes while editing files in nano etc.

share|improve this question
up vote 4 down vote accepted

This needs to be supported by each program separately, and I'm not sure if any shells support mouse...

In nano, add set mouse to your ~/.nanorc.

share|improve this answer
Cool, it works through PuTTY in nano! :-) – poplitea Nov 30 '12 at 19:24
:set mouse=a does the same thing in vim. – DaoWen May 22 '15 at 0:17

This is in case controlled by the option Terminal | Features | Disable xterm-style mouse reporting from Putty's configuration dialog. If it's disabled, the mouseclicks are reported, otherwise they're not.

Many curses-like programs like elinks, vim and such also support the mouse in this way, sometimes even including the scroll wheel. Kinda cool, actually. :o)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.