bug-ncurses
[Top][All Lists]
Advanced

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

Re: Display difference between ncurses version 5.7 and version 6.0.0.201


From: Thomas Dickey
Subject: Re: Display difference between ncurses version 5.7 and version 6.0.0.20170708
Date: Thu, 20 Jul 2017 05:16:35 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Jul 19, 2017 at 06:19:09AM -0700, Rich Burridge wrote:
> On 07/19/2017 01:22 AM, Thomas Dickey wrote:
> >On Tue, Jul 18, 2017 at 06:51:49PM -0700, Rich Burridge wrote:
> >>On 07/18/2017 06:45 PM, Rich Burridge wrote:
> >>>...
> >>>Any red flags for you with this terminfo file?
> >>I did diff the Solaris one against the Ubunto one and got:
> >>
> >>$ gdiff -urN solaris-terminfo.txt linux-terminfo.txt
> >>--- solaris-terminfo.txt    2017-07-18 18:56:24.204081755 +0000
> >>+++ linux-terminfo.txt    2017-07-18 18:55:00.479256768 +0000
> >>@@ -1,18 +1,18 @@
> >>-$ /usr/gnu/bin/infocmp xterm-color
> >>-#       Reconstructed via infocmp from file:
> >>/usr/gnu/share/terminfo/x/xterm-color
> >>-xterm-color|nxterm|generic color xterm,
> >>+infocmp xterm-color
> >>+#    Reconstructed via infocmp from file: /lib/terminfo/x/xterm-color
> >>+xterm-color|generic "ANSI" color xterm (X Window System),
> >>      am, km, mir, msgr, xenl,
> >>      colors#8, cols#80, it#8, lines#24, ncv@, pairs#64,
> >That's simple: don't use "xterm-color".
> >
> >http://invisible-island.net/ncurses/ncurses.faq.html#xterm_color
> >
> >The screenshot seemed to show that you're using some version of
> >gnome-terminal.  For anything "recent" (since around 2000), and probably
> >any version of Solaris that you're using, it copies the "bce" feature
> >done in Linux console (early 1990s) and XFree86 xterm (mid-1990s).
> >
> >When an application clears the screen, the terminal will fill in with
> >the currently-set colors.  Depending on the details, that might be
> >the color you expect, or it might be the (uncolored) default colors
> >for the terminal.
> 
> Okay thanks, but what should I use (on Solaris)?
> 
> I tried:
> 
>   $ TERM=xterm-256color python test_userscreen.py
> 
> and get the same result. Trussing it shows that it is using:
> 
>   /usr/gnu/share/terminfo/x/xterm-256color

Checking a newly-installed 11.3 system, that has "bce".

But unless ncurses had been compiled to use extended colors,
that wouldn't work properly.  (The package manager doesn't
show any development headers for "ncurses", so I'd suspect
that it's a minimal package without any customization).

It does have "xterm-new" (promising), but checking the version
on gnome-terminal, that's 2.30.2 with copyright date 2007.
It's likely that's still using the obsolete function-key definitions,
so I'd look at the "gnome" entry.

You can verify function-keys for a given terminal description
(menu n, f, k) using tack (for which there's a package).
tack has an ok test for bce, but it's not exhaustive.
 
> In a previous reply you mention:
> 
>  "I have a to-do note dealing with "xterm+256color" on Solaris (it's
>  completely wrong)."
> 
> 
> so that's probably the problem. Is there anything I can do to help
> you fix that?
> 
> In the meantime, what would you suggest we can use (on Solaris)
> instead, to get the desired result?
> 
> I also tried:
> 
> $ TERM=sun python test_userscreen.py
> 
> but that complained that there wasn't color support.
> 
> 
> 
> 
> 

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