microsoft/Terminal

Add SGR-Pixels (mouse mode 1016)

Open

#18,591 opened on 2025年2月19日

GitHub で見る
 (6 comments) (5 reactions) (0 assignees)C++ (3,212 forks)batch import
Area-InputArea-VTHelp WantedIssue-FeatureProduct-Terminal

Repository metrics

Stars
 (35,764 stars)
PR merge metrics
 (平均マージ 27d 19h) (30d で 24 merged PRs)

説明

Description of the new feature

Now that sixel is implemented, SGR-Pixels mouse mode would be a nice feature to have. Also helps to implement features such as, e.g., smooth scrolling.

I've searched through issues and only found two references to this feature (below), so hopefully this isn't a duplicate:

https://github.com/microsoft/terminal/issues/448#issuecomment-1010263526 with response from @j4james :

I wasn't considering 1016, but I do have a POC of the DEC locator mode. There's no point in doing either of them until we have sixel, though, because the pixel coordinates will need to be tightly coupled to the sixel resolution.

And listed as not supported here https://github.com/microsoft/terminal/issues/10531#issuecomment-872398721 from @DHowett

Would prefer 1016 over DEC Locator since it seems to be more widely used? https://github.com/dankamongmen/notcurses/issues/2326 https://github.com/wezterm/wezterm/issues/1457 https://github.com/mahmoudimus/jexer/blob/16d27b6f4182e3c2cfecd7673934ebe09782861a/README.md?plain=1#L26C1-L26C70 https://github.com/Aetf/libtsm/pull/29 https://github.com/xtermjs/xterm.js/issues/4092

Proposed technical implementation details

No response

コントリビューターガイド