Hello Bill

On 10/03/2019 16.41, Bill Allombert wrote:
> Do you know where in the GPM code this ioctl is used ?

I'm not sure how gpm does it, but console application which use ncurses,
such as dialog for example, do detect mouse clicks from it. vttest
doesn't show them though, so it currently does it in another way. It has
a patch for it though:
https://sources.debian.org/src/gpm/1.20.4-6.2/patches/todo/xterm-mouse-for-console.patch/


> Do you have an example of program where this feature will be useful?

I currently only know about dialog.

But I'm working on a console keyboard which will need that
functionality. I intend to use it on my librem 5 smartphone. It isn't
finished yet though. Here are the sources of the different components of
it and a video:
https://github.com/Daniel-Abrecht/console-keyboard-multiplexer
https://github.com/Daniel-Abrecht/console-keyboard-basic
https://github.com/Daniel-Abrecht/libttymultiplex
https://dpa.li/console-keyboard-multiplexer-demo.mp4


Regarding the other things you mentioned which could be improved, I'll
create a new patch this week.

Regards,
Daniel Abrecht

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to