[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] Pasting large amounts of text into readline-enabled p
Re: [Bug-readline] Pasting large amounts of text into readline-enabled programs truncates parts of the lines of the text being pasted
Mon, 22 Jul 2013 11:42:01 -0400
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
On 7/22/13 10:22 AM, Margarita Manterola wrote:
> One year ago this bug was reported, but nothing seems to have happened:
> To recap:
> Copying and pasting text into a readline enabled program in linux
> causes it to lose some parts of the input, on MacOSX apparently (I
> don't have access to one to test this myself), the behavior is that
> some characters are repeated.
I spent a bunch of time looking at this and concluded that the problem was
the result of changing the terminal modes from cooked to raw and back at
every line boundary.
The workaround is to turn off line editing (and the terminal mode
switching) before pasting a large number of characters into the input
buffer. This has been tested and works.
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/