[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature: where terminal reports mouse click to bash, support positio
Re: Feature: where terminal reports mouse click to bash, support positioning the cursor accordingly
Mon, 18 Jan 2021 20:08:47 +0000 (UTC)
I had a look for information on this. I found
Also this question from stackexchange has a helpful answer:Any terminal shell
with mouse support?
| | |
Any terminal shell with mouse support?
Perhaps the method that works with zsh in the first answer could be copied? The
code from the script gives some pointers: http://stchaz.free.fr/mouse.zsh
On Tuesday, 19 January 2021, 08:11:14 GMT+13, Chet Ramey
On 1/17/21 6:57 PM, mcarans--- via Bug reports for the GNU Bourne Again
> It would be great to be able to use the mouse to click to position the
>cursor in bash. I raised this with the Gnome terminal emulator here and they
>said "The cursor position is under the control of the application, not the
>terminal emulator. vte supports reporting the mouse click to the application,
>and the application can reposition the cursor accordingly."
> My request is that bash support the mouse information that terminal emulators
> pass to it so that it is possible to click the mouse button to position the
What information does the terminal emulator pass to the application to
indicate the desired position? How would readline translate that into a
series of readline commands that would position the cursor, filtering
out invalid requests, of course?
This would require a lot more detail and a better specification before I
would be able to do something with it.
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU email@example.com http://tiswww.cwru.edu/~chet/