<< 23/31 >>
First Last

xclip w/ screen

screen のコピーバッファを X のクリップボードに

__scr2x

 #!/bin/bash
 screen -X eval "msgminwait 0" "writebuf /tmp/scr" "msgminwait 1"
 trap '' SIGHUP
 cat /tmp/scr | nkf -w | xclip
 screen -X echo 'xclip'

.screenrc

 bind ^x exec __scr2x