screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to get clipboard into paste buffer


From: David Woodfall
Subject: Re: Trying to get clipboard into paste buffer
Date: Thu, 31 May 2018 00:18:07 +0100
User-agent: Mutt/1.9.4+99 (e250c602) (2018-03-15)

On Wednesday 30 May 2018 23:46,
Dave Woodfall <address@hidden> put forth the proposition:
> I'm using the following bind to get the x clipboard into the paste
> buffer and then paste it:
>
> bind P eval 'exec sh -c "xsel -n -o -b > /tmp/screen-exchange"' 'readbuf' 
> 'paste .'
>
> There seems to be some kind of timing problem, because readbuf seems
> to execute before xsel has pasted and pastes the old contents of
> screen-exchange. If I execute it twice, it works as it should.
>
> If I just have the xsel command it does copy into screen-exchange so
> I know that that's working, and I can then run 'c-a < c-a ]' and it
> works that way too.
>
> I tried adding a sleep command in there but it didn't make any
> difference.
>
> Any ideas on how to get this working?

I guess the simple way is just paste it directly.

--

How do you power off this machine?
  -- Linus, when upgrading linux.cs.helsinki.fi, and after using the machine 
for several months

                                                            .--.  oo
                                                           (____)//
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]