steves, thanks for your efforts to be of help.

Can the terminal/driver handle multiple colors on a true white background? Yes. A simple "ls" command at the command line in a directory that has several different types of dir entries makes that clear.

Can Curses produce color on a true white background? Again, yes. But as far as I have been able to discover, only through the use of the non-standard color "8" (or some other number higher than 7) in an assume_default_colors() command. This code works:

assume_default_colors(COLOR_RED, 8); # True White bg! Why? my $win = new Curses; $win->addstr(0, 0, "Red on White");
I can find no way to use
init_pair(...); ... attron( $win, COLOR_PAIR(...) );
to achieve some color on a true white background. And that seems to be what would be needed to give me more than one foreground color on a true white background.

If I were willing to settle for any of the 8 predefined colors as a background, I would be home free. But even the off-white color that Curses calls "WHITE" greatly reduces the contrast and readability of the display.

So in terms of the questions you pose, this all means that it is a Curses/ncurses issue. And that is the way I tried to frame the question in my original post.

Update: I have even tried multiple assume_default_colors(COLOR_SOMETHING, 8) commands -- but no joy. If you want the tutorial on how that fails under various creative strategies, I will be glad to oblige...

I have done a lot of reading and a lot of experimenting/testing and learned a whole bunch about Curses -- everything except the one thing I need to move forward. I am currently looking at other tools... Does anyone know how to get the alternate character set (with box graphics) under Term::ScreenColor? <g>


In reply to Re: Re: Re: Re: Color on TrueWhite in Curses - Redux by dvergin
in thread Color on TrueWhite in Curses - Redux by dvergin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.