11

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 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: bash using colors), 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.

1

3 Answers 3

30

there is a package called dialog, is this relevant to your requirement?

Sign up to request clarification or add additional context in comments.

1 Comment

dialog link is broken
9

I haven't used this myself, but have you checked out bashsimplecurses? From the documentation, it looks like a possible solution.

Comments

0

I wrote a package I call BashGuiHelper, besides all the standard tasks, it's has awesome tree handling/selections and can be compiled with static FLTK libs or a smaller SO-based version.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.