LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] can only paste 4096 bytes to shell

[ILUG] can only paste 4096 bytes to shell

P at draigBrady.com P at draigBrady.com
Wed Sep 8 19:23:46 IST 2004


Baruch Even wrote:
> 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.

Thanks Baruch.

I'm not sure it's to do with the X program (terminal)
as I'm using gnome terminal and the same thing happens in xterm.
Also vim within either terminal will get all input,
but bash/tcsh within either terminal will loose input.
Note for me sometimes input is lost in the middle
of the echos and not just the end, so changing
the above from 500 -> 5000 should help trigger.

-- 
Pádraig Brady - http://www.pixelbeat.org
--- Following generated by rotagator ---

New Linux networking commands

ifconfig, route, mii-tool etc. are out of date
The new kids on the block are ip and ethtool.

ip link show                          #list interfaces
ethtool interface                     #list interface status
ip link set dev eth0 name home        #rename eth0 to home
ip addr add 1.2.3.4/24 brd + dev eth0 #add ip and mask(255.255.255.0)
ip link set dev interface up          #bring interface up (or down)
ip route add default via 1.2.3.254    #set default route to 1.2.3.254
--



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell