pub fn copy(text: &str)
Ask the terminal to put text on the clipboard (OSC 52): kitty, iTerm2, WezTerm and others do (tmux when its set-clipboard lets it through); the rest ignore it. Whether it took cannot be known.
text
set-clipboard