I use ssh a lot. Copying text from the remote machine to the host machine always sucked. But OSC-52 makes that easy. OSC-52 is an ANSI escape sequence to write text to the terminal emulator. The terminal emulator, if it understands what is going on, will in turn write this text to the system clipboard. What this means is some printf magic can send text to your clipboard. I store this one-liner in a script called oclip: printf"\033]52;c;%s\007""$(base64<&0)" and I run it with: remote $ cat som...