15

Is there any way at all to use the mouse cursor to move the cursor in terminal, like click where you want it and press a key to move it there?

This is one of the most annoying things I've ever found using the terminal

I know Ctrl+A will move to the beginning of the line but sometimes these commands are so long

Thecafremo
  • 13,617
  • 3
  • 45
  • 48
Akshat
  • 387

1 Answers1

23

Try option-click, that is, click with option pressed.

This works on the command line and also in screen editors, such as vi and nano.

option-click just sends the appropriate escape sequences to move the cursor to anywhere in the terminal screen. (To see this working, try it with cat.)

lhf
  • 7,278