On 2026-02-12 19:34:05 -0500, Thomas Dickey wrote:
> But with xterm tweaked to omit button-release responses to mimic
> the behavior that Vincent described, I don't see any problems.

Termux does generate button-release escape sequences, as shown
by vttest 11 8 5, then 4 or 7. For instance:

<27> [ M <32> X B <27> [ M # X B

But it seems that ncurses 6.6 does not handle it correctly.

Could you tweak xterm to be able to support long press as an event,
for instance? I mean, for instance, a long press would trigger a
menu in Xterm instead of being sent to the application running in
the terminal, i.e. no escape sequences should be generated. This
means that the button-press escape sequence must be sent just
before the button-release escape sequence (instead of when the
button was pressed). That would better emulate touchscreen, and
the Termux terminal in particular.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

Reply via email to