[Chicago-talk] Willing to pay $$ for help. how hack a perl module?

Richard Reina richard at rushlogistics.com
Sun Apr 11 17:51:15 PDT 2010


I began to try to do so but I can't figure out where in the pm to do it. So far understanding how the module works is over my head. Also, I'm beginning to think that color -- via ANSI::Color or some other method is already incorporated into Cmenu because certain text in the sample menus have color. It probably just a matter of altering the code in Cmenu.pm so that the text in the choices submitted can be displayed in color, but I have not been able to figure it out. My offer still stands if the price is reasonable I can pay. Also, I might also be able to finagle some Cubs tickets to an upcoming game if someone wants to barter. 

Richard

 
---- Joshua <joshua.mcadams at gmail.com> wrote:
>
> Doesn't look like you got a lot of response to this one unless it was
> offline. My guess is that you could somehow mix in Term::ANSIColor
> and/or Term::ANSIColor::Markup with Cmenu and get what you need, but I
> haven't looked to closely at it. Have you already went down this
> route?
> 
> On Fri, Apr 9, 2010 at 8:57 AM, Richard Reina <richard at rushlogistics.com> wrote:
> > Hello all,
> >
> > After spending half an hour looking at Cmenu.pm I've come to the conclusion
> > that hacking up Cmenu.pm is beyond my limited programing skills.  If someone
> > is willing to look at the module and let me know how much $ they would need
> > to make it do what I need (print menu choices in different colors) I would
> > be interested in hiring them if the cost is not prohibitive.
> >
> > MORE ABOUT WHAT I NEED:
> >
> > If you install Cmenu and run the script below the choices gimmie 1, gimmie
> > 2, gimmie 3 are in plain text.  I would like to find a way to make those
> > choices different colors. For example, gimmie 1 (in red), gimmie 2 (in
> > yellow), gimmie 3 (in blue).
> >
> >
> > #!/usr/bin/perl
> >
> > # Sample Cmenu script
> >
> > use Cmenu;
> >
> > menu_initialise("Cmenu Sample Script");
> >
> > menu_init("Menu Title","Menu Help Text");
> >
> >
> > menu_item("Option 1","gimme1");
> > menu_item("Option 2","gimme2");
> > menu_item("Option 3","gimme3");
> >
> >
> > chop($sel = menu_display("Menu Prompt"));
> >
> > menu_terminate("bye bye");
> >
> >
> >
> >
> >
> >     Chicago.pm chatter <chicago-talk at pm.org> wrote:
> >
> >
> >     /usr/local/share/perl/5.10.0/Cmenu.pm
> >
> >     This is the one that Perl's going to be using w/ a
> >     use Cmenu;
> >
> >     stmt
> >
> >     /home/richard/.cpan/build/Cmenu-1.1-2rnVpQ/blib/lib/Cmenu.pm
> >     /home/richard/.cpan/build/Cmenu-1.1-2rnVpQ/Cmenu.pm
> >     /home/richard/.cpan/build/Cmenu-1.1-xSHlXX/Cmenu.pm
> >     /home/richard/.cpan/build/Cmenu-1.1-Ym3lRy/Cmenu.pm
> >
> >
> >     These are all part of the install process - appears you installed v1.1 a
> > couple times ... or at least  fetched a 4 times and built one of them?
> > Anyway, they might be useful if you break the usr/local one, if you've no
> > backup.
> >
> >     a
> >     ----------------------
> >     Andy Bach
> >     Systems Mangler
> >     Internet: andy_bach at wiwb.uscourts.gov
> >     Voice: (608) 261-5738;
> >     Cell: (608) 658-1890
> >
> >     Any sufficiently advanced bug is indistinguishable
> >     from a feature.  -- Rich Kulawiec
> > _______________________________________________
> > Chicago-talk mailing list
> > Chicago-talk at pm.org
> > http://mail.pm.org/mailman/listinfo/chicago-talk
> >
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
> 


More information about the Chicago-talk mailing list