suzdraws / mintty

Automatically exported from code.google.com/p/mintty
0 stars 0 forks source link

Place command line cursor with mouse #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With command lines that stretch across multiple lines it can be quite a
chore to get to somewhere in the middle of the line to edit it. Hence it
would sometimes be nice to be able to place the command line cursor with
the mouse.

MinTTY now supports that by sending the required number of left/right arrow
keys to get from the current cursor position to the mouse click position.
This is limited to the current command line, and disabled on the alternate
screen. (Putty's terminal emulation helpfully keeps track of whether line
breaks are due to wrapping at the right edge, which allows to recognize the
extent of the current command line).

Implemented on trunk for 0.4.

Original issue reported on code.google.com by andy.koppe on 18 Mar 2009 at 6:47

GoogleCodeExporter commented 9 years ago
Made this an option defaulting to off in the end, because it doesn't currently 
take
wide characters or the line ending into account. Also, if the current command 
line
does not actually allow cursor movement with the cursor keys, the keycodes 
appear on
the command line instead. The latter problem could only be solved by cooperation
between shell and terminal.

Original comment by andy.koppe on 7 Jun 2009 at 8:01

GoogleCodeExporter commented 9 years ago

Original comment by andy.koppe on 7 Jun 2009 at 8:02