Clipboard integration using OSC 52

I ran into an issue after migrating to Void Linux from Fedora where the command as given rendered the escape sequence with base64-encoded code on the screen and did not successfully update the system clipboard. The updated line that worked for me removed the \e’s:

printf "\033]52;;%s\a" "$encoded" >"/proc/$kak_client_pid/fd/0"
2 Likes