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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |