哪些 ncurses 框架可用于 BASH?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7876008/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 00:59:34  来源:igfitidea点击:

What ncurses frameworks are available for BASH?

linuxbashncursestuibash4

提问by

Are there some more Text User Interface (TUI) frameworks for bash (other than this)? : http://code.google.com/p/bashsimplecurses/

是否有更多用于 bash 的文本用户界面 (TUI) 框架(除此之外)?:http: //code.google.com/p/bashsimplecurses/

  • I want to take user input (data entry)
  • process the entry
  • 我想接受用户输入(数据输入)
  • 处理输入

采纳答案by Jonathan

If all you need to do is prompt the user for information, take a look at dialog.

如果您需要做的只是提示用户提供信息,请查看dialog

http://invisible-island.net/dialog/dialog.html

http://invisible-island.net/dialog/dialog.html

回答by Agi Hammerthief

bashsimplecursesis pretty capable (from the little I've seen), but you might want to try GTK Server. (Have a look at the docs page for tutorial and manual links). It can work with a large number of scripting languages. Other Stack Exchange users (particularly the UNIX/ BSD/ GNU/Linuxlot) recommend using ncurses with Python.

bashsimplecurses非常有能力(从我见过的一点点来看),但您可能想尝试GTK Server。(查看文档页面以获取教程和手册链接)。它可以使用大量脚本语言。其他 Stack Exchange 用户(尤其是UNIX/BSD/GNU/Linux 用户)推荐将 ncurses 与 Python 结合使用。