Synchronizing buffers

[email protected]
Newsgroups gmane.comp.gnu.screen.user
Message-ID <alpine.DEB.2.02.1207030142400.8032@Eather>
Hi,

I am trying to synchronize the screen buffer and the primary selection
using the .screenrc and xclip. That's why I added this lines to my
.screenrc :


# 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 "xclip /tmp/screen-exchange"'

# Write from the X buffer in screen
#
#bind < eval "exec sh -c 'xsel > /tmp/screen-exchange'" readbuf "stuff '^a]'"
bind < eval "exec sh -c 'xclip -o > /tmp/screen-exchange'" readbuf 'paste .'


This doesn't work, actually some tests based of the structure :
`bindkey -m […] 'exec sh -c "cat /tmp/screen-exchange > tmp"'
make me think that my screen-exchange is not readable while the command
is running. The file `tmp' is created but nothing is written into it.

Once the command is done though, a `cat /tmp/screen-exchange' gives me
the right content.


Does anyone have ever done this manipulation ?

     Cédric Picard
   [email protected]

_______________________________________________
screen-users mailing list
screen-users-mXXj517/[email protected]
https://lists.gnu.org/mailman/listinfo/screen-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.