bill lam wrote:
On Thu, 03 Sep 2009, Patrick Gen-Paul wrote:
I'm pretty sure that a bit like mutt, gnu/screen supports piping its
commands to an external application, but I'm don't see at a glance
how this could be implemented.
You can use screen bindkey. Adding the following into ~/.screenrc,
the xsel serves the same purpose as the xclip and you may also change
the option to use clipboard instead of x selection.
-- 8< --
-- 8< -- ?
I think I'm getting confused, mixing up mail quoting ">"'s and the above.
:-)
# set the second mark, write to the screen-exchange
# file, and use xsel to synchronize the paste buffer
# with the X selection.
bindkey -m > eval "stuff ' '" writebuf "exec sh -c 'xsel <
/tmp/screen-exchange'"
bindkey < eval "stuff ' '" "exec sh -c 'xsel -o > /tmp/screen-exchange'" readbuf
I'd need more help to fully understand the above two lines, but I'm
reluctant to abuse the mutt-users list with a continued discussion of
something that no longer has anything to do with mutt - especially since
I'm more interested in better understanding screen than terminal to X
data exchange.
Unfortunately, I don't think you are on the screen-users list, or at
least you haven't posted to it for a long time.
Anyway, thanks for sending me on my way to becoming a GNU/screen power
user. ;-)
Gen-Paul.