screen と rdic
http://www.tees.ne.jp/~sin-x/200404a.html#0102
から。なるほどなるほど。xclip ラブな私は
screen -X eval "msgminwait 0" "copy" "stuff \"W\"" "screen sh" 'stuff "echo "' "paste ." 'stuff " | xclip^M^L^D"' "msgminwait 1"
僕にもできた screen スクリプト。いちいちシェル起動するのはダサイな。