Automatically sync system clipboard with paste buffer?

Rose Hogenson <rosehogenson-VwIFZPTo/[email protected]> Thu, 10 Oct 2024 01:53:43 +0000
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
I have to copy and paste a lot from my terminal, and using the mouse 
doesn't work if the content is longer than the window height.


Right now I have the following binding in my .screenrc:

bind > eval "writebuf" "exec osc copy /tmp/screen-exchange"

using https://github.com/theimpostor/osc to copy through ssh. It works 
really well, but I'm curious if you would be open to accepting a patch 
for screen to do this automatically when content is copied to the paste 
buffer? It would make integration with the desktop clipboard feel really 
seamless. It should be as easy as emitting the right OSC escapes from 
within screen as long as the terminal supports it.


Thanks!


Rose