Re: POC: Make the TUI command window support the mouse (Re: [PATCHv3 1/2] Initial TUI mouse support)

Pedro Alves
2021-06-12T18:08:28Z

On 2021-06-12 1:32 p.m., Hannes Domani wrote:

> If this works on Linux, then that's great, but Windows doesn't send mouse
> escape sequences.

I was under the impression that Windows just worked without further changes, so we'd
just not compile in the new code.

>
> On the other hand, if keypad was enabled, couldn't we just forward readline
> the escape sequences for the arrow keys instead?

Yeah, to be honest I think that is likely a better approach and worth it of a
try -- my only concern is whether the escape sequences are standard enough
across terminals? Maybe it's all covered by ANSI and it's all we need to care
about? I thought of the other approach because that let's us not care about
specific sequences, other than the mouse sequence, which seemed pretty much
standard from looking around. Also, it was run to write. :-)