|
Posted by Ekki Plicht (DF4OR) on September 25, 2007, 3:00 pm
Please log in for more thread options HaroldWho wrote:
> On Mon, 24 Sep 2007 21:24:48 +0200, Ekki Plicht (DF4OR) wrote
> in comp.lang.perl.modules:
>> HaroldWho wrote:
>>
>> [...]
>>> 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."
>>
>> What version of ncurses are you using? Here it's 5.6.20061217, find out
>> with $ ncurses5-config --version
>>
>> Maybe your installed version is too old? Here the chgat call looks as
>> follows:
>> $ man curs_attr
>> [...]
>> int chgat(int n, attr_t attr, short color,
>> const void *opts)
>
> My version is 5.6.20070217. Not too old, but perhaps too new :-)
>
> So, I'm still at a loss. I guess I'll have to dummy up some simple scripts
> for Curses and Curses::Widgets to see what makes the failure happen.
Well, what does your manpage say (man curs_attr)? Or the source? It's easy
to find the reason for that error, you just have to look. The solve the
problem might be another issue.
Rgds,
Ekki
|