Skip to content

Add support for an empty Pc parameter in OSC 52 #124

Open
@j4james

Description

@j4james

I've recently been testing terminal support for the OSC 52 clipboard sequence, and one of the issues I noticed in DomTerm was that you don't support an empty Pc parameter. For example, I would expect the test case below to copy Hello World to the clipboard, but that doesn't currently work in DomTerm:

printf "\e]52;;SGVsbG8gV29ybGQ=\e\\"

The reason why I think it's worth supporting, is because this is one of the most common ways that apps set the clipboard with OSC 52. Some examples include tmux, the FAR file manager, and the Joe editor.

The other reason I'm raising this is because a couple of terminal devs have been discussing the idea of using the primary device attributes report to indicate support for OSC 52. We've already got six people that have agreed to the idea, and I was hoping you might be willing to support the proposal in DomTerm as well. However, the minimum requirement is that the terminal can copy to the clipboard with a Pc value of c as well as with an empty Pc value, so that is something that you would need to address first.

But if you're willing to do that, and you're interested in the DA idea, there's a mini spec you can read here. We're still fleshing out some of the details, but the basic requirements are fairly straightforward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions