On Wed, 2004-09-08 at 16:28, P at draigBrady.com wrote:
> To reproduce do the following:
>> for i in `seq 500`; do echo "echo $i"; done > paste.txt
> gvim paste.txt
> Select all (ggVG)
> Now middle click to paste the commands into a terminal.
>> For me only the first 4096 bytes are pasted.
> I'm guessing it's something to do with tty modes,
> or the switching of modes as vim running on the
> terminal can accept all the pasted info fine.
X protocol needs extended protocol to transfer larger chunks of data
(above 4k), one of the participating programs is not doing its part in
the transfer and doesn't continue as it should.
Since gvim is one side I'd suspect your terminal program is misbehaving.
You could try to use the xclip program to do the receive side, it's a
clipboard manipulation program which I maintain in Debian and had the
need to hack it a bit, I've tested large transfers and they are known to
work with it.
FWIW, your test case works for me with multi-gnome-terminal as the
terminal.
Baruch
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!