bufferfile "$HOME/.screen-exchange"
# a keybinding for quick xsel
bind > eval 'writebuf' 'exec sh -c "< $HOME/.screen-exchange xsel -i -p"' 'echo
"Copybuffer written to $HOME/.screen-exchange and to clipboard"'
On Mon, 20 Feb 2012, Axel Beckert wrote:
On Sat, Feb 18, 2012 at 06:23:05PM +0100, Philipp Haselwarter wrote:
is it possible to copy a text selection to the X clipboard? Right now
I'm copying text and piping it into xsel, which works but is a bit
cumbersome, some kind of wrapper or macro would be handy.
"writebuf" can write the contents of the paste buffer to a specified
file.
With xsel, xclip, xcb and friends and maybe a shell script which runs
several 'screen -X' commands in a row and a key bound to executing
that shell script should be possible. Maybe screen's eval command can
also help.
_______________________________________________
screen-users mailing list
screen-users@gnu.org
https://lists.gnu.org/mailman/listinfo/screen-users