Re: 2.3.2.1 & copy/paste
Re: 2.3.2.1 & copy/paste
- Subject: Re: 2.3.2.1 & copy/paste
- From: Brandon Allbery <email@hidden>
- Date: Mon, 30 Mar 2009 12:37:23 -0400
On 2009 Mar 30, at 10:48, Michael Parson wrote:
I've seen this problem for years, under other operating systems, using
editors other than emacs, terminals other than Mac OS's Terminal.app.
I just figured it was a problem with the buffering of the editor.
I suspect this is actually the buffering in the kernel pty driver. On
many systems, the buffer is 255 bytes and anything more than that sent
before the buffer can drain will be silently lost. So the more code
between the pty and the program running inside it, the more likely
there will be dropouts. So yes, a simple "cat" in a shell will be
much more likely to work than an emacs.
The usual workaround is to insert delays into the paste mechanism to
allow the recipient to catch up, when pasting into a terminal program;
but detecting this is not trivial, so it's usually done all the time.
This will also mitigate any race conditions in GUI programs, and yes,
I've seen some.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] email@hidden
system administrator [openafs,heimdal,too many hats] email@hidden
electrical and computer engineering, carnegie mellon university KF8NH
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden