Indicate support for OSC 52 in the devices attributes report #23349

Open
opened 2026-01-31 08:39:47 +00:00 by claunia · 0 comments
Owner

Originally created by @j4james on GitHub (Jun 10, 2025).

Description of the new feature

I've mentioned this as a possibility before, but I think it's time to consider it more seriously now. The idea is that we would add the extension parameter 52 to our devices attributes report, to indicate to applications that we support copying to the clipboard with OSC 52.

I've been discussing the idea with a number of other terminal devs recently, and five have already agreed with the proposal. I'm going to continue promoting the idea with other terminals and apps, but if Windows Terminal can be persuaded to sign up, I think that would already be enough of a consensus for everyone to start using it.

Proposed technical implementation details

We need to get PR #18949 merged first, so both OpenConsole and Windows Terminal have OSC 52 support, but then it's just a simple matter of adding 52 to the string here:

155d8a9ab2/src/terminal/adapter/adaptDispatch.cpp (L1487)

Originally created by @j4james on GitHub (Jun 10, 2025). ### Description of the new feature I've mentioned this as a possibility before, but I think it's time to consider it more seriously now. The idea is that we would add the extension parameter `52` to our devices attributes report, to indicate to applications that we support copying to the clipboard with `OSC 52`. I've been discussing the idea with a number of other terminal devs recently, and five have already agreed with the proposal. I'm going to continue promoting the idea with other terminals and apps, but if Windows Terminal can be persuaded to sign up, I think that would already be enough of a consensus for everyone to start using it. ### Proposed technical implementation details We need to get PR #18949 merged first, so both OpenConsole and Windows Terminal have `OSC 52` support, but then it's just a simple matter of adding `52` to the string here: https://github.com/microsoft/terminal/blob/155d8a9ab264742d4bbaf243b922835417fe9901/src/terminal/adapter/adaptDispatch.cpp#L1487
claunia added the Product-ConhostIssue-TaskArea-VTNeeds-Tag-Fix labels 2026-01-31 08:39:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23349