Skip to main content

copy_via_osc52

Function copy_via_osc52 

Source
pub fn copy_via_osc52(text: &str) -> Result<()>
Expand description

Copies text to the terminal clipboard via OSC 52.

Works in many Linux terminal emulators (and often over SSH). tmux/screen may need clipboard passthrough enabled.

ยงErrors

Returns an I/O error when writing to stdout fails.