bug-ncurses
[Top][All Lists]
Advanced

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

Re: pkgconfig fix does not work for 'w' version of the libraries


From: Thomas Dickey
Subject: Re: pkgconfig fix does not work for 'w' version of the libraries
Date: Sat, 9 May 2015 19:56:43 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Sat, May 09, 2015 at 09:10:56PM +0000, address@hidden wrote:
> > If you run "script", it runs a shell, capturing all output to the terminal:
> > 
> > http://man7.org/linux/man-pages/man1/script.1.html
> > 
> > Given a resulting "typescript" file, I can (usually) get useful information 
> > from that
> 
> Ok, got to fight with some broken autoconf macros from util-linux to make it
> compile and install script and scriptreplay...
> 
> here are the files:
> http://filebin.ca/21Ajw9LkE2cR/lynx_timing
> http://filebin.ca/21AkenTVRi8F/lynx_typescript
> 
> There, I run lynx, which start with that "white background", then I do a
> refresh with "ctrl-l" which configure properly a "black background" from now
> on (my mlterm background is white).

The screen is rather large, but I see the glitch.  In the beginning, it
does this:

        Script started on sam. 09 mai 2015 21:01:24 UTC
        \n/root# lynx\r
        \n
        \E[?1049h
        \E[1;64r
        \E(B
        \E[m
        \E[4l
        \E[?7h
        \E[?1h
        \E=
        \E[39;49m
        \E[39;49m
        \E[30m
        \E[40m
        \E[H
        \E[2J
        \E[37m
        \E[40m
        \E[J
        \E(B
        \E[m
        \E[39;49m
        \E[30m
        \E[40m
        \E[39;49m
        \E[J
        \E[39;49m
        \E(B
        \E[m
        \E[64d
        \E[93m
        \E[44mGetting file://localhost//root/

which may not mean a lot to you. I can describe _what_ it's doing, for a start.

Referring to "infocmp mlterm",

        + it does some typical initialization - keypad, etc.
        + then it resets colors with \E[39;49m
        + oddly, it sets the colors to black-on-black \E[30m \E[40m
        + then it clears the screen \E[H \E[2J
        + it sets colors to white-on-black
        + and it clears the screen again.

That's where you see the screen flash.  More than one factor contributes.

        + ncurses assumes that the screen's default is white-on-black.
        + lynx has configuration tweaks to help when that is not the case.
                ASSUMED_COLOR
                DEFAULT_COLORS
          But setting TERM is more important
        + mlterm is probably showing black-on-white.
        + mlterm does not support bce (back-color-erase) which confuses
          ncurses.  It seems you have TERM set to xterm-16color or something
          like that, which has the bce flag.
        + the difference with bce confuses ncurses;  it does not fill in
          spaces with the current background color when it does erases.

The "mlterm" entries in ncurses are the recommended ones for mlterm

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

Attachment: signature.asc
Description: Digital signature


reply via email to

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