bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature: where terminal reports mouse click to bash, support positio


From: Michael Rans
Subject: Re: Feature: where terminal reports mouse click to bash, support positioning the cursor accordingly
Date: Mon, 18 Jan 2021 20:08:47 +0000 (UTC)

 I had a look for information on this. I found 
https://www.xfree86.org/current/ctlseqs.html#Mouse%20Tracking
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
Mike
    On Tuesday, 19 January 2021, 08:11:14 GMT+13, Chet Ramey 
<chet.ramey@case.edu> wrote:  
 
 On 1/17/21 6:57 PM, mcarans--- via Bug reports for the GNU Bourne Again 
SHell wrote:
> Hi,
>  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 
> cursor.

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.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
        ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/
  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]