Post #103,383
5/24/03 11:22:25 AM
|
Alternative for dialog?
I'd like a text based combo box for shell / perl script data input.
I wrote my own menu system eons ago that I'm happy with, but I've wandered looking for a good combo box. Those that I've seen were typically cross platform ports of tool graphical tool boxes, which then meant the character mode never reall worked well.
Any pointers?
|
Post #103,388
5/24/03 12:27:59 PM
|
Possibly build from perl Curses::Widgets?
I need a script tool that handles:
Multiple text fields. Radio boxes - single entry only allowed. Check boxes - multiple entries allowed Menu choice - single entry only allowed. Menu pick list - multiple entries allowed.
Driven by a template / control file, not needing recoding for each usage.
It's output should be a series of "FIELD=data" assignments suitable for import into a shell or Perl script.
Does such a beast exist or should I code it myself?
|
Post #103,397
5/24/03 1:33:40 PM
|
Uhoh
[link|http://freshmeat.net/projects/jttui/?topic_id=809|http://freshmeat.net...tui/?topic_id=809]
Seem to provide the cleanest way to get what I want of I have to code it myself.
BUT IT IS IN RUBY!!!!
Can you hear Ben Tilly laughing now?
|
Post #103,398
5/24/03 1:35:15 PM
|
Possible winner.
[link|http://ftp.badpenguin.org/pub/software/libgringo/|http://ftp.badpengui...ftware/libgringo/]
Anybody have any experience with it?
|
Post #103,402
5/24/03 2:26:57 PM
|
Looks like you found nearly
The exact thing you wanted.
Thanks, good find too... :)
You are really getting in waist deep here lately Barry.
You are really workin it!
COO!
[link|mailto:greg@gregfolkert.net|greg] - IT Grand-Master for Anti-President | [link|http://www.iwethey.org/ed_curry/|REMEMBER ED CURRY!] |
THEY ARE WATCHING YOU. The time has come for you to take the last step. You must love THEM. It is not enough to obey THEM. You must love THEM. PEACE BEGETS WAR, SLAVERY IS FREEDOM, STRENGTH IN IGNORANCE.
|
Post #103,404
5/24/03 3:02:12 PM
5/24/03 3:07:49 PM
|
Watch out
Bad or non-existant docs, no error checking. Will stomp memory and segfault if the size of the window is defined larger than size of terminal. Same issue if a check box is placed "off-screen" by accident, etc.
Seems like the only missings things are are radio button group and multi-choice list. A scrolling menu can double as a radio box, and I'll live without the multi-check for list for now.
Very usable. Here's my current example control file:
WINDOW| 3| 3| 73| 29| Test Configuration BACKTITLE| CC3
LABEL| 3| 2|| IP Address: EDIT| 15| 2| 20|| ip_address
LABEL| 2| 4|| Subnet mask: EDIT| 15| 4| 20|| sub_net
BUTTON| 21| 6|| But 1 | BUTTON1 BUTTON| 30| 6|| But 2 | BUTTON2
CHECKBOX| 2| 8| 1| Check1 opt 1 | CHECK1_1 CHECKBOX| 2| 9| 0| Check1 opt 2 | CHECK1_2 CHECKBOX| 2| 10| 0| Check1 opt 3 | CHECK1_3 CHECKBOX| 2| 11| 0| Check1 opt 4 | CHECK1_4
LISTBOX| 2| 13| 40| 5 | LIST_BOX_1 LISTITEM | Item 1 LISTITEM | Really ksd jskld lasdj las dlas dasldasld asldasldaskldlaks dasld Item 2 LISTITEM | Item 3 LISTITEM | Item 4 LISTITEM | Item 5 LISTITEM | Item 6 LISTITEM | Item 7 LISTITEM | Item 8 LISTITEM | Item 9
LISTBOX| 2| 19| 40| 5 | LIST_BOX_2 LISTITEM | L2 Item 1 LISTITEM | L2 Really ksd jskld lasdj las dlas dasldasld asldasldaskldlaks dasld Item 2 LISTITEM | L2 Item 3 LISTITEM | L2 Item 4 LISTITEM | L2 Item 5 LISTITEM | L2 Item 6 LISTITEM | L2 Item 7 LISTITEM | L2 Item 8 LISTITEM | L2 Item 9
Edited by broomberg
May 24, 2003, 03:07:49 PM EDT
|
Post #103,439
5/24/03 10:31:36 PM
|
Grid
Have you got it to work?
I hate reading source code in Italian!
|
Post #103,484
5/25/03 10:28:25 AM
|
Actually... no.
I wasn't working on it once you decided dialog wasn't the answer... but I was looking for a replacement.
Sorry, iffn you want I will work on it.
[link|mailto:greg@gregfolkert.net|greg] - IT Grand-Master for Anti-President | [link|http://www.iwethey.org/ed_curry/|REMEMBER ED CURRY!] |
THEY ARE WATCHING YOU. The time has come for you to take the last step. You must love THEM. It is not enough to obey THEM. You must love THEM. PEACE BEGETS WAR, SLAVERY IS FREEDOM, STRENGTH IN IGNORANCE.
|
Post #103,485
5/25/03 10:56:10 AM
|
Give it a shot
Maybe you'll find a better usage.
|