On Sun, Feb 24, 2019 at 07:35:20PM +0000, Daniel Abrecht wrote:
> Package: consolation
> Version: 0.0.6-2
> Severity: wishlist
> Tags: patch
> 
> Some programs support mouse tracking to allow users to click on things
> inside the terminal. For example, it is possible to click on options in
> `dialog`. gpm did support this, but had issues with touch screens. It
> would be great if `consolation` could add support for this. I've
> attached a patch for adding that functionality.
> 
> A good way to test this is using `vttest`. Just select the following in
> `vttest`:
> 
> `11. Test non-VT100 (e.g., VT220, XTERM) terminals`
> `8. Test XTERM special features`
> `5. Mouse features`
> `4. Normal Mouse Tracking`
> 
> After that, you can click anywhere in the terminal. It should display
> the button number at the location in the terminal a click occurred, and
> a star where the mouse button has been released.

Hello Daniel,

I have just tested your patch and while it seems to work, I get:
selection: TIOCLINUX: Invalid argument
each time I press a button.

> The reason I have set BUTTON_RELEASED=0 in my current_button enum and
> not to 3 is mainly just a habit, I like to be able to initialize things
> with all 0 and have them in some sort of neutral or default state.

Well, but if the kernel defines BUTTON_RELEASED to be 3, consolation
should do the same.

Do you know where in the GPM code this ioctl is used ?
Do you have an example of program where this feature will be useful?
(it should probably use TIOCL_SELCLEAR)

Cheers,
Bill

PS: I have moved consolation GIT repo to salsa.debian.org:
<https://salsa.debian.org/consolation-team/consolation>

Reply via email to