I have scoured the internet and even tried to send an email to the Curses::UI maintainer - but the email in CPAN is a dud. can anyone tell me from this documentation how i can create the color Orange (255,165,0): http://search.cpan.org/~mdxi/Curses-UI-0.9609/lib/Curses/UI/Color.pm I have tried like 50 different ways.

$cui->define_color('orange',255,155,0);



It's not a function, its not a method from the $cui (mainwindow) object, its not a method of the label object or anything like that, so i am confused by the poor documentation. Also Perl applications that use Curses::UI die without any errors or warnings ??? Thanks, return 0;

ADDITIONAL INFO: the author has put the code: -default-colors => BOOLEAN on the CPAN page also, which is broken and I think he/she meant: -default_colors=>BOOLEAN adding a new hyphen will break the code. Also they wrote: "Creates a new Curses::UI::Color object" and used the terms "method" AND "function" for define_color LOL this is very confusing!! I tried this:

#!/usr/bin/perl -w use strict; my $colorobj = new Curses::UI::Color; my @colors = $colorobj->get_colors(); print $_ foreach (@colors); exit;

which also did nothing. ??

UPDATE: Tried to contact author and maintainer of Curses::UI neither of which responded. After hours of testing and research, I have given up. This method define_color() does not work. I can add a color to the colors() array with it, but it ( the RGB value of the added color ) is NULL each time. marking as "unresolved."


In reply to [Unresolved] Curses::UI define_color by return0

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.