Skip to content

Any-event SGR mouse reports are wrong #18712

@j4james

Description

@j4james

Windows Terminal version

1.23.10353.0

Windows build number

10.0.19045.5371

Other Software

No response

Steps to reproduce

  1. Open a WSL shell in Windows Terminal
  2. Execute printf "\e[?1006;1003h"; read; printf "\e[?1003l"
  3. Move the mouse over the terminal window
  4. Take note of the final character of the reported mouse events.

Expected Behavior

Those mouse reports should end with an uppercase M.

Actual Behavior

The mouse reports end with a lowercase m.

The spec is a bit confusing, because it says the final character is "M for button press and m for button release", and in this case the button isn't pressed, so you'd think a lowercase m might be more appropriate, but that's not how Xterm implements it (nor any other terminal I've tested). I think the rule is that it only ends with a lowercase m if it's actually a mouse release event.

See also zellij-org/zellij#4065 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-VTVirtual Terminal sequence supportIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-1A description (P1)Product-TerminalThe new Windows Terminal.

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions