[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Konsole with osc52



On Tue, 13 Aug 2024 18:05:22 -0700 Soren Stoutner <soren@debian.org> wrote:

> I am guessing by your comments that Ctrl+Shift+C and Ctrl+Shift+V doesn’t work
> for some reason.

Those shortctuts should work as usual. But the idea is to use editors that integrate with system
clipboard in some way. I.e. if in neovim you use clipboard providers, you can copy editor's own
selection into system clipboard instead of relying on terminal's selection. It makes a difference in
how easy it's to do things.

In case of local usage, neovim would rely on xsel or wl-copy to send text to system clipboard,
but when you do it remotely over ssh, you either need to forward X, or find some other ways.

Without forwarding X (good for Wayland world), OSC52 is such mechanism.
OSC = operating system command [escape sequence].

It basically signals to the terminal through some special escape sequence, that some portion
of text should be copied to the clipboard. And it works very neatly.

Regards,
Shmerl.

Reply to: