New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support osc 52 in tty backend #1416
Comments
Some OSC 52 support charts: https://github.com/jirutka/tty-copy#tty-copy Looks like iTerm2 also supports it |
This script makes ANY terminal OSC52-compatible then using ssh connections: (it's for Mac, but can be easily adopted for Linux. tested, working) |
if you have something beside this tiny tool - plz check if it (just merged) works as needed, for me it works with this tool (after changing to use xclip) but with some glitches - it seems it (or gnome terminal) echoes OSC sequence to screen |
Tested in kovidgoyal's kitty (https://github.com/kovidgoyal/kitty/, binaries: https://sw.kovidgoyal.net/kitty/binary/), works as expected, great! Will ask to test in Windows Terminal people in far2l users telegram chat. Meanwhile, shouldn't we also support it in far2l's internal VT? |
Oh, there is some problem. Looks like there is a kind of limit of content length that can be written to clipboard such way. |
Not reproduced with pb52 script. Also not reproduced in st (it needs osc 52 to be specially enabled). Probably kovidgoyal's kitty limitation. |
Ok, let's close this one and open new issue for internal VT's OSC52 support. |
pb52 adopted for xclip: |
To enable OSC52, run
And then go to
|
Microsoft have merged OSC 52 support for clipboard access to Windows Terminal. If far2l's tty backend support it, WSL far2l users will have much better experience.
microsoft/terminal#5823
Send 'far2l' to clipboard:
echo -en "\e]52;;ZmFyMmw=\a"
The text was updated successfully, but these errors were encountered: