Skip to content

OSC52 and tmux set-clipboard does not work #3037

Description

Which operating system does the issue occur on? Arch Linux
If on linux, are you using X11 or Wayland? X11

tmux sends OSC 52 to Alacritty without the c parameter, i.e. the first parameter here %p1%s is blank.

Ms: (string) \033]52;%p1%s;%p2%s\007

This is the equivalent of running:

printf "\033]52;;$(printf "%s" "blabla" | base64)\a"

(if you hit Ctrl+Shift+V afterwards, your clipboard should not change)

However this works with the %p1%s parameter set to 'c'.

printf "\033]52;c;$(printf "%s" "blabla" | base64)\a"

(if you hit Ctrl+Shift+V afterwards, your clipboard should have 'blabla' in it)

Alacritty doesn't accept an empty parameter which is supposedly allowed in the spec. If we could add support for this, that would be awesome!

For tmux users, the workaround is to override the terminfo for alacritty:

set-option -ga terminal-override ',alacritty:Ms=\E]52;c;%p2%s\007'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions