[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-readline] Re: readline eats previous text on line

From: Chet Ramey
Subject: [Bug-readline] Re: readline eats previous text on line
Date: Thu, 12 Oct 2006 16:34:33 -0400

> Using guile 1.8, which uses readline, I find that if I make a call to
> readline("prompt: ");
> that anything I have already output on the current line is deleted and 
> replaced with "prompt: ".  If I call
> readline("");,
> then I get a completely blank line.

Readline, especially when it's in a locale supporting multibyte characters,
is quite careful to keep track of exactly where the cursor is on the screen
line.  Unfortunately in this case, sometimes it erases and redraws the line
to do so.

Readline-5.2, just released, is much better about this than 5.1, but you
cannot completely rely on the redisplay code not needing to erase what's
on the line if it determines that that is the way to most efficiently
perform redisplay.


``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]