Monday, May 14, 2012

Bash script with graphical menus

Good day,



I have been writing simple bash scripts for a while now, and I was wondering how I could implement simple menus and, if possible, use menus with color.



In the past, I have written simple C applications that use ncurses (http://en.wikipedia.org/wiki/Ncurses) and would like to (if possible) have menus in my bash script where the user can use the up/down arrows to select items in a list, and go back/forth through a series of yes/no/cancel prompts.



I am familiar with setting up colored text in bash, so there's a start (eg: http://webhome.csc.uvic.ca/~sae/seng265/fall04/tips/s265s047-tips/bash-using-colors.html), so the only requirement left at this point is to see if bash has these capabilities. I would prefer to avoid having to code an application in C/C++ for this, as I would like to be able to edit it on the fly.



Thank you all in advance.





No comments:

Post a Comment