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: Hataguchi Takeshi
Subject: Re: lynx-dev annoying blinking of lynx with ncurses
Date: Sat, 3 Nov 2001 00:10:00 +0900 (JST)

On Wed, 31 Oct 2001, Thomas Dickey wrote:

> 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.

Ah, I'm sorry I've misunderstood your last mail.

If LYclrtoeol was used, would some other characters, which should be
shown, be disappeared?

I tried to use LYclrtoeol instead of the explicit loop, but I found
a bad result in this html (I couldn't found 'Hello!').

<html>
<head>
<title>foo</title>
</haed>
<body>
<form action="foo.cgi">
<input type="text" name="text"> Hello!
</form>
</body>
</html>
--
Takeshi Hataguchi
E-mail: address@hidden

NOTE!: This patch will cause bad effect. This is just for a test.

--- LYStrings.c.bak     Thu Aug 16 07:09:52 2001
+++ LYStrings.c Fri Nov 02 22:01:52 2001
@@ -3449,6 +3449,9 @@
        if (Mark >= 0 && DspStart > Mark)
            TmpStyleOn(prompting ? s_prompt_sel : s_aedit_sel);
 #endif
+#ifdef SUPPORT_MULTIBYTE_EDIT
+       LYclrtoeol();
+#endif
        for (i = 0; i < nrdisplayed; i++) {
 #if defined(ENHANCED_LINEEDIT) && defined(USE_COLOR_STYLE)
            if ( Mark >= 0 && ((DspStart + i == Mark && Pos > Mark)
@@ -3542,12 +3545,6 @@
     }
 
     LYmove(edit->sy, edit->sx + Pos - DspStart);
-#ifdef SUPPORT_MULTIBYTE_EDIT
-#if (!USE_SLANG && !defined(USE_MULTIBYTE_CURSES))
-    if (HTCJK != NOCJK)
-       lynx_force_repaint();
-#endif /* !USE_SLANG && !defined(USE_MULTIBYTE_CURSES) */
-#endif /* SUPPORT_MULTIBYTE_EDIT */
 
 #ifdef USE_COLOR_STYLE
     if (estyle != NOSTYLE)

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

reply via email to

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