In vim, you can use the option :set mouse=a, and then (if your SSH client supports it) you will be able to simply click and the cursor will move, rather than having to use the arrow keys or whatnot.
I realize that vim switches to the 'alternate screen'. I'm just wondering if there's a way to use such integration on the 'main' screen also. If so, are there any shell script interpreters that handle this?
Right now I'm using bash, and sometimes I type a quite long command, and have to correct something mid-way through. If there was an alternative to bash which was reasonable, or an extension to bash which handles mouse interaction I would be pleased. Do you know what I need to make this work?
Further I'm interested in mysql but let's start with the main command line.
Ctrl-XCtrl-Eto edit the current command line in your favourite editor. that's assuming you're using the emacs-like default keybindings. if you're using vi-like keybindings, useESCv. If your editor can use the mouse, this will too.