Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Curses Help

by $ENV{REMOTE_USER} (Novice)
on May 03, 2000 at 21:59 UTC ( #10135=perlquestion: print w/replies, xml ) Need Help??

$ENV{REMOTE_USER} has asked for the wisdom of the Perl Monks concerning the following question:

I'm looking for a good intro book or website on the Curses module but there doesn't seem to be a whole lot of doc's out there. I've read through the man pages and perldoc's (and the perl cookbooks tiny section) but I need more info.

I learn well by example and I'd really like to find some sample code to poke through if anyone has any.

Any help would be greatly appreciated!

Replies are listed 'Best First'.
Re: Curses Help
by infoninja (Friar) on May 04, 2000 at 07:46 UTC
    Not sure if you're wanting to use Curses.pm directly, or use another module on top of curses; I've done both. If you're wanting to use Curses.pm directly, I'd still suggest looking at some of the related modules on CPAN (i.e., Curses::Forms, Curses::Widgets, and perlmenu). Even in instances when I'm not using any of those modules, I often find that I can lean much about Curses by looking at how the other authors have implemented/solved things.
      Actually, I found those modules last night. *Very* nice, high level interface to widgets. I think it's going to let me accomplish what I need. I havn't had a chance to pick at the module yet but it should contain all I really need to know about Curses at this point.

      One question (since you're familure):
      Is there a way to use the bind method to capture arrow keys? That would allow a context box for list_box's that could display based on the selected field. I tried KEY_UP, etc. but it behaved as I feared it would (K, E, Y, _, U, P where assigned as the bound keys).
      If I added the regex when adding the widget to the forms, it didn't seem to pass the reference to the object state as Mod_Own does.
Re: Curses Help
by turnstep (Parson) on May 03, 2000 at 23:48 UTC

    O'Reilly (the animal cover people) has a curses book:
    http://www.oreilly.com/catalog/curses/index.html
    It mostly describes manipulating curses in C. I haven't read the book, but I've used curses extensively in the past (in C) and it can be a real pain (to say the least). The book is only $12.95, but only $10.35 at fatbrain.com. Can't go wrong at that price!

      Yeah.. I was thinking about picking it up but I don't really know C all that well. That's the problem I've ran into... everything related to Curses.pm assumes some familiarity with curses in C. It strikes me as odd that it's not well documented in perl. If that's my only option, then I guess I'll pick it up and see what I can do with it (the price is right).
Re: Curses Help
by perlcgi (Hermit) on May 05, 2000 at 16:43 UTC
RE: Curses Help
by Adam (Vicar) on May 03, 2000 at 22:34 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://10135]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2022-05-21 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?