Skip to content
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

OSC52 copy? (copy over ssh) #561

Open
SuperKenVery opened this issue Sep 4, 2024 · 0 comments
Open

OSC52 copy? (copy over ssh) #561

SuperKenVery opened this issue Sep 4, 2024 · 0 comments

Comments

@SuperKenVery
Copy link

We currently rely on some external programs to copy text, which may or may not work, given the user can be under X/Wayland/SSH:

let clipboards = [
(
"wl-copy",
format!("printf '%s' '{}' | {}", string, "wl-copy"),
),
("xsel", format!("printf '%s' '{}' | {} -ib", string, "xsel")),
("pbcopy", format!("printf '%s' '{}' | {}", string, "pbcopy")),
(
"xclip",
format!(
"printf '%s' '{}' | {} -selection clipboard",
string, "xclip"
),
),
];

Maybe consider using OSC52? It's should work everywhere, regardless of the environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant