Skip to main content

clipboard_copy_primary

Function clipboard_copy_primary 

pub fn clipboard_copy_primary(text: &str)
Expand description

Push text onto the primary selection — the mouse-driven “select then middle-click paste” buffer, distinct from the Ctrl+C clipboard. Terminals and editors set this whenever a range is selected so a middle-click paste in any app receives it. Goes through the same clipboard as clipboard_copy.