Click here to get back home

SOLVED: Curses::Widgets Runtime Error

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
SOLVED: Curses::Widgets Runtime Error HaroldWho 10-13-2007
Posted by HaroldWho on October 13, 2007, 3:01 pm
Please log in for more thread options

My original problem was:

> The 'perl Makefile.PL' step seems OK. The 'make test' seems OK too, but when
> the Curses color test screen appears and I press a key (as instructed), the
> app terminates with 'Error 255.'
>
> I have an app that uses Curses::Widgets, and it fails with the message:
>
> "Curses function 'chgat' called with too many arguments at
> /usr/lib/perl5/site_perl/5.8.8/Curses/Widgets/ButtonSet.pm line 305."

This last message is the key. Most of the Widget set has calls to 'chgat'
like this:

$dwh->chgat($y, $x, $length, A_STANDOUT,
select_colour(@$conf{qw(FOREGROUND BACKGROUND)}), 0);

When all these calls are corrected to drop the null arg, like so:

$dwh->chgat($y, $x, $length, A_STANDOUT,
select_colour(@$conf{qw(FOREGROUND BACKGROUND)}));

the problem is solved.

Sincere thanks to Ekki Plicht and bzipitidoo for helpful comments.

HaroldWho
(who now has his Curses::Widgets back again)
--
Powered by Slackware 12.0 Linux -- Kernel 2.6.21.5-smp
News Reader slrn 0.9.8.1



Similar ThreadsPosted
Curses::Widgets::Menu Question May 11, 2005, 8:32 pm
Compile problem: Curses::Widgets September 24, 2007, 2:54 pm
SOLVED - DBD::mysql on AIX - Member libz.so.1 is not found in archive November 2, 2004, 11:10 am
SOLVED: Running MCPAN behind an authenticating proxy server (kludge) November 23, 2004, 1:05 pm
CDK vs Curses::UI April 15, 2005, 11:12 am
Perl Tk:Scheduler command called subroutine fails to talk to tk widgets January 31, 2007, 2:05 pm
keylist for set_binding in Curses::UI February 7, 2005, 3:11 pm
Curses-perl that doesn't live up to it's name? November 10, 2006, 10:30 pm
Installing Curses Module? February 22, 2008, 11:45 am
curses module installation failed March 16, 2006, 1:26 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap