图形菜单bash脚本 [英] Bash script with graphical menus
问题描述
我一直在写简单的bash脚本有一段时间了,我想知道我怎么能实现简单的菜单,如果可能的话,使用菜单颜色。
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.
在过去,我已经写了使用简单的C程序 ncurses的并想(如果可能的话)在我的bash脚本菜单,用户可以使用向上/向下箭头在列表中选择项目,并返回/向前通过一系列的是/否/取消提示。
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.
我熟悉建立在bash彩色文本,所以有一个开始(例如:的使用bash颜色的),所以只要求留下在这一点上,看看bash有这些功能。我想preFER以避免code在C / C ++为这个应用程序,因为我希望能够编辑它的飞行。
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.
推荐答案
有一个叫做的对话框,这是有关您的要求吗?
there is a package called dialog, is this relevant to your requirement?
这篇关于图形菜单bash脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!