[BusyBox] menu applet

Martin Volf mv at inv.cz
Wed Feb 12 11:48:04 UTC 2003


Hello,

I've attached a simple menu applet (something like dialog --menu) for busybox v0.61.pre. Examples of use: examples/fchooser.sh or:

menu -d 2 -t 5 -m " * " -p "choose" \
 "red" "watch out" \
 "green" "very nice" \
 "blue" "my favorite one"

prints to stderr this:

   1) red   watch out
 * 2) green very nice
   3) blue  my favorite one
choose <5s> [2]: 

then waits 5 seconds for the choice and prints it to stdout, e.g. blue if you choose 3. Maybe someone will find it useful, it works for me.

--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: menu.diff.gz
Type: application/x-gzip
Size: 3061 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20030212/2a085e91/attachment.bin 


More information about the busybox mailing list