Connecting Tech Pros Worldwide Help | Site Map

can't find documentation for curses menu support

Newbie
 
Join Date: Aug 2009
Posts: 3
#1: Aug 26 '09
I'm try to write a very simple menu in perl curses, but I just can't find any documentation for it. A small sample script called demo.menu came with the package, but I can't seem to figure out how it works without any documentation. I've also found plenty of documentation for ncurses menu support in C, which is very similar, but I don't know enough about C to figure out how it works in perl.

Can someone either point me in the direction of some documentation, or to a simple script showing how it's done?
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#2: Aug 26 '09

re: can't find documentation for curses menu support


I've never used curses and don't know anything about it but there is documentation on CPAN:

http://search.cpan.org/~giraffed/Curses-1.27/Curses.pm
Newbie
 
Join Date: Aug 2009
Posts: 3
#3: Aug 26 '09

re: can't find documentation for curses menu support


Yes, I found that. But there is no specific documentation on how to use the menu functions build in. It shows which functions are available, but doesn't say what needs to be passed with each one, for example. Thanks for looking, though.
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,568
#4: Aug 27 '09

re: can't find documentation for curses menu support


Quote:

Originally Posted by LazarusHC View Post

Yes, I found that. But there is no specific documentation on how to use the menu functions build in. It shows which functions are available, but doesn't say what needs to be passed with each one, for example. Thanks for looking, though.

There is a reason they don't explain how to use the functions and for that, you have to read the description section of that page, which says:

##### Begin excerpt #####

For descriptions on the usage of a given function, variable, or constant, consult your system's documentation, as such information invariably varies (:-) between different curses(3) libraries and operating systems. This document describes the interface itself, and assumes that you already know how your system's curses(3) library works.

##### End excerpt #####

So, you will have to consult the system's documentation as instructed in the cpan page.

Sorry, but like Kevin, I haven't toyed with curses either.

Regards,

Jeff
Reply