• Re: Konsole with osc52

    From Soren Stoutner@21:1/5 to All on Tue Aug 13 18:05:22 2024
    Copy: shtetldik+shmerl@gmail.com (Shmerl)

    On Tuesday, August 13, 2024 5:02:40 PM MST Shmerl wrote:
    For those unfamiliar, the benefit of OSC52 support is the ability to copy
    to clipboard from a terminal,
    so even in Wayland session when you are doing ssh to some remote host, you can copy to clipboard
    from neovim running there or any editor that supports OSC52.

    That’s interesting. I don’t have personal experience with Wayland (will probably be switching soon) and neovim, but I am guessing by your comments that Ctrl+Shift+C and Ctrl+Shift+V doesn’t work for some reason.

    --
    Soren Stoutner
    soren@debian.org
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEJKVN2yNUZnlcqOI+wufLJ66wtgMFAma8AtIACgkQwufLJ66w tgNXQA/7BIgq8RFwW1Xb4EKZx2RBQtn4+RzAn14kZm11EsE7F2BQ42c25xzWMwor n9VyHl55UE6nMUtrcbQJDVMMLAYoxAL6bEw1OE7zczltsfObb7f/DQnByXixfR4U 2yyphlTV7g1oW3EEUrqIyqWNbEqEUjOsa5Er9sVACklC5wJWyMjPZ8DanapiPfRQ NwMFMnBLuAuj1nxaBCQ1OwbIGjVamz1wj4lAMfCixV9Gabd+U9gdUJbzJ7di6Cz4 BuCOHvQhCBapquq7R/ItLW8mievSsYKvqLfpW8kEvM7kF0iFPPjEUZ5RFRaB++dr 91i/ebaOWGTAG/t8jOXFzzgFUfTCR3v/tzMmiXg7I9OI71EXFvWO4oWwYRxNFKdC 81pT0wh0+MxBt7CZ/rSoiV8zf/cnAtILrgVvAsQm6mqXXNJ52qi1E7rzReNBnRjf sSH97JIZAKmTST3KtKl0FQkYbqEUJpcfkxoF/9sN2Qr7W/yvhU3yyWoS+O578DHQ XGUfy2tETTpOwyh0gBQA60MQ/u5TbkErYuVj8kmthnxL4akvXW3Q36Haw8ZgsmC9 xeN/FrOhJqZiQEYYL9LPZdrDNRPT597BNwOSHiOeLPYs2nvvoGNbrAC5smcBqCKO 2nQqUreWC/WBVZauwzZkgmIjYUMm37qMcdo2u7a/HzQ/Sy994BQ=
    =zHuR
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Soren Stoutner@21:1/5 to All on Tue Aug 13 19:06:32 2024
    Copy: shtetldik+shmerl@gmail.com (Shmerl)

    Thanks for the detailed explanation.

    On Tuesday, August 13, 2024 6:33:19 PM MST Shmerl wrote:
    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.


    --
    Soren Stoutner
    soren@debian.org
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEJKVN2yNUZnlcqOI+wufLJ66wtgMFAma8ESgACgkQwufLJ66w tgPOYA//f2ny7pWSsq86a5jweJpFoJGOsmQmAef/6NQHEIXP2cpWL9h4Zdh125u0 ReyL0x7hsxNY7N1vjjI/E7cVUDpXB/HE0jCfMLdDYbY8rzXzpzCHsdcYJPm3dlnY x8rv6y3EnhAECP7QOl4D2bmNxmJj86dqaO/WQCAMVxMfs+gYGHB2XOqD8N8VYbO9 Wv3QNFKbtVFukvTZdhFU4uKM/uteQh4zp0m5/tH1IVqUR5+erA6rVtTPmWguxUEX O/P55whKOJo0NkEpHiPRwVyJ0aG/C7ikwsTBGXdxKldYO7gd6ELbPixJefXMdY3V XBPymbI1URLOt+TpEOFle1ilo0+wwOqv7dKWGT7sln6gaNJBBts9EBWVKsbjP9Ct 9oFVHnx7wlCPH5+0FCQiHwDCqfLgJymMzaBgPnf3zWXl2/qFsz/E9nflliHpQTP/ 4WNRaRikdV4fkUu9xKwMjjl8AdYTd54K7Gx/prot/dHhL78EfZA+Fe+95snwl77w Bby9VyV8NxuXK+nj8vJ5v+diH4nRtcZG8qNq5YLo37UvpMHqhDwqmkXP04xFPTBE I2W2AmdsQuZFNoz6DWwOu8cWih+wAPcwnKwfLJlvXoqrvyosSHShApa0p8l1kgo3 UnkefsQaR0ZFoTD/dN4dq4spTSd1CJ9nu+NUz2yxmGC/H5c4YUU=
    =NXaA
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)