Moving cursor in PuTTY with mouse click?

5

2

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.

poplitea

Posted 2012-11-30T18:58:47.900

Reputation: 756

Answers

4

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.

user1686

Posted 2012-11-30T18:58:47.900

Reputation: 283 655

:set mouse=a does the same thing in vim. – DaoWen – 2015-05-22T00:17:02.783

Cool, it works through PuTTY in nano! :-) – poplitea – 2012-11-30T19:24:18.173

5

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)

Vucar Timnärakrul

Posted 2012-11-30T18:58:47.900

Reputation: 671