Hobocamp - Moose-based interface to dialog (simple text based GUI)
version 0.600
use Hobocamp; my $main = Hobocamp->new->init; # prep terminal my $menu = Hobocamp::Menu->new; # pass in options... $menu->run; print 'You selected: ', $menu->value->{'name'}; # ... $main->destroy; # restores terminal
Hobocamp is for building simple console user interfaces through dialog(1) in an object oriented way via Moose. Hobocamp::Dialog is a library with a near 1 to 1 interface of dialog(1)s interface. You can use this independently of the object oriented way.
This class is used to initialize and destroy the dialog(1) interface. Additionally auto imports all the widgets into the calling name space.
Currently Hobocamp::Dialog has the most documentation.
Not sure, but you could try asking the writers of "Strangers With Candy".
urbandictionary.com had this to say:
A catchall for words that one doesn't know how to spell. Interchangeable with fandango. Coach Wulf: "Um, Jerri, what does V-I-C-T-O-R-Y spell?" Jerri: "Fandango...? No, hobocamp. Hobocamp!"
I'm terrible at spelling, so this name is adequate. I do want to give a big shout out to Emacs' flyspell-prog-mode and Test::Spelling for catching my mistakes while developing this.
Missing widgets: dialog_form, dialog_gauge, dialog_mixedform, dialog_mixedgauge, dialog_progressbox, dialog_tailbox
Requires Perl 5.12.2 (until I can test on other versions).
I'm happy with the API, but I may not be tomorrow so consider it close enough.
Documentation is a little lacking.
dialog/ncurses: http://invisible-island.net/dialog and http://invisible-island.net/ncurses
dialog.h
Moose
Adam Flott <adam@npjh.com>
This software is copyright (c) 2011 by Adam Flott <adam@npjh.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Hobocamp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hobocamp
CPAN shell
perl -MCPAN -e shell install Hobocamp
For more information on module installation, please visit the detailed CPAN module installation guide.