[Top][All Lists]

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

lynx-dev Lynx vs. color-pairs?

From: Bela Lubkin
Subject: lynx-dev Lynx vs. color-pairs?
Date: Thu, 12 Sep 2002 20:00:29 -0700

I'm trying to understand some odd Lynx output with SCO OpenServer curses
and the "ansi" terminfo entry.  The entry reads:

#       Reconstructed via infocmp from file: /usr/lib/terminfo/a/ansi
ansi|ansic|ansi-437|ansi80x25|Ansi standard console,
        am, bce, eo, xon,
        colors#8, cols#80, it#8, lines#25, pairs#64,
        bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
        clear=\E[2J\E[H, cr=\r, cub1=\b, cud1=\E[B, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
        ed=\E[m\E[J, el=\E[m\E[K, home=\E[H, ht=\t, ich1=\E[@,
        il1=\E[L, ind=\E[S, invis=\E[8m, kLFT=\E[d, kRIT=\E[c,
        kbs=\b, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
        kcuu1=\E[A, kdch1=^_, kend=\E[F, kf1=\E[M, kf10=\E[V,
        kf11=\E[W, kf12=\E[X, kf2=\E[N, kf3=\E[O, kf4=\E[P,
        kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U,
        khome=\E[H, kich1=\E[L, knp=\E[G, kpp=\E[I,
        op=\E[37;40m, rev=\E[7m, ri=\E[T, rmacs=\E[10m,
        rmso=\E[m, rmul=\E[m, setb=\E[4%p1%dm,
        setf=\E[3%p1%dm, sgr0=\E[10;0m, smacs=\E[12m,
        smso=\E[7m, smul=\E[4m,

With this entry, Lynx outputs what appears to be an entire screen's
worth of blank spaces at startup.  It also outputs big wads of spaces at
other times.

An entry that reads "ansi-nopairs|testing, pairs@, use=ansi," eliminates
this extra output.  So the problem is somehow related to "pairs=64".

In fact, it seems to happen with any value of "pairs" larger than 8.
Also, arbitrarily adding "pairs#9" to any other random terminfo entry
causes the same behavior.

I think this is related to this macro in LYCurses.c:


and the calls to:

  wbkgd(LYwin, COLOR_BKGD | ' ');

in lynx_map_color() and lynx_init_colors().  In fact I think I could
kludge a "fix" in several different ways... what I don't know is how to
fix it _right_.  I figure Tom will know, since he maintains both Lynx
and the main implementation of curses...

The right answer might be "OpenServer curses' wbkgd() is busted, it
should know to emit ESC[2J to `clear' the screen to a particular color
set rather than painting it with spaces".  But I hope not, that'll be a
pain to fix...

Lynx is:

  $ lynx -version
  Lynx Version 2.8.5dev.8 (28 May 2002)
  libwww-FM 2.14, SSL-MM 1.4.1, OpenSSL 0.9.6b
  Built on sco3.2v5.0.7 Jul 25 2002 03:57:05

Using SCO OpenServer curses.  (yes, OpenSSL is dangerously out of date
and will be updated before 5.0.7 ships...)


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

reply via email to

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