lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev annoying blinking of lynx with ncurses


From: Thomas Dickey
Subject: Re: lynx-dev annoying blinking of lynx with ncurses
Date: Wed, 31 Oct 2001 16:26:03 -0500
User-agent: Mutt/1.2.5i

On Wed, Oct 31, 2001 at 11:31:57PM +0900, Hataguchi Takeshi wrote:
> On Sun, 28 Oct 2001, Thomas Dickey wrote:
> 
> > would LYclrtoeol() work, rather than this explicit loop on LYaddch()?
> > 
> > (the loop limit is a problem, because it is not necessarily directly
> > related to the amount which can be cleared on the screen)
> 
> I couldn't understand the problem you wrote here.
> I think the amount of the loop limit can be calculated easily
> from the cursor position and the width of the screen.  And
> multibyte characters don't cause any problems in LYclrtoeol.

as I read the proposed patch, it used the strlen() of the current editing
buffer to decide how many cells to fill.  That could be longer than the width
of the screen, for instance, if the buffer was multibyte characters.  I thought
it would be simpler to use LYclrtoeol() to erase the remainder of the line.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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