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. | [reply] |
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.
| [reply] |
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!
| [reply] |
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).
| [reply] |
| [reply] |
| [reply] |