In both windows cmd and bash, I'd like to find a way to move the caret by moving the mouse. This would simplify editing the command line for me greatly.
|
|
I'm not aware of any mouse support in bash. For zsh, get zsh mouse support. This gives you cursor mouse movement in X terminals under X on Linux and other unices. It probably works on Windows with Cygwin zsh under unix-like terminals such as Cygwin's native rxvt, Mintty or PuTTYcyg. |
|||
|
|
|
You could try xdotool for bash.
gives you the mouse location as a coordinate of your screen, you could probably script this to capture mouse motion... and then use
to get the corresponding direction key. Basically, you can probably write a script to press the left direction key, for example, when the x coordinate of the mouse shifts by a certain number of pixels down. it depends on your screen resolution. EDIT: This works for me on a horizontal direction. However, you need to think of a way to shut it down if u want it off. Closing the terminal would work.
|
||||
|
|
|
Not many of the newer terminals have mouse support, but I think xterm, rxvt and Eterm do. |
|||
|
|