On 7/22/13 11:53 AM, Margarita Manterola wrote:
> Hi,
> 
> On Mon, Jul 22, 2013 at 5:42 PM, Chet Ramey <[email protected]> wrote:
>> 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.
> 
> Who is doing this change?  I would expect it to be the terminal, but
> the example code in
> http://lists.gnu.org/archive/html/bug-readline/2012-06/msg00006.html
> doesn't have a mode change per line.

readline does it.  That's how readline is able to read a character at a
time.

>> 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.
> 
> Can you elaborate a bit more on this, please?

Sure.  It's application-specific.  In bash, for instance:

set +o emacs +o vi

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    [email protected]    http://cnswww.cns.cwru.edu/~chet/

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to