return0 has asked for the wisdom of the Perl Monks concerning the following question:
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."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: [Unresolved] Curses::UI define_color
by cxw (Scribe) on Jan 15, 2021 at 19:58 UTC | |
Re: Curses::UI define_color
by kcott (Archbishop) on Apr 16, 2013 at 10:59 UTC | |
by return0 (Acolyte) on Apr 16, 2013 at 12:05 UTC | |
Re: Curses::UI define_color
by Anonymous Monk on Apr 16, 2013 at 07:37 UTC | |
by return0 (Acolyte) on Apr 16, 2013 at 20:55 UTC |