On Sat, Feb 23, 2002 at 10:20:21PM +0100, [EMAIL PROTECTED] wrote:
> I just tried a tcpdump. For up-arrow the sequence ESC [ A
> is transmitted. The first packet contains ESC only, 1 byte;
> the second package contains [ A, 2 bytes.
> This is using rsh and an xterm.

I'm not saying it can't, I'm saying it shouldn't.  I suppose this is
harder to guarantee when the terminal and rsh programs are separate, but
it's definitely something to avoid.

> > I'd assume there's something wrong with your environment
> 
> Possibly, but this is a fairly standard X, xterm, rsh environment.
> Linux on the sending side.
> 
> I have not looked at the source, but with some fantasy one might
> conjecture that a single write goes out in a single packet,
> and that xterm uses two writes.

All told, that's probably what happens.  I'd tend to call that a bug
(because it causes problems like you're describing), but it's not
something I can try to fix.  (No X available.)  rsh or anything else
in between might cause it, too, but I'd suspect xterm first.  (Tried
rxvt or the console?)

(Of course, there's probably no real guarantee that even a small write()
to a socket will go out in one packet, but I doubt you have a max packet
size of 2 ...)

-- 
Glenn Maynard
--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to