简单的菜单系统perl
我正在尝试在一个简单的菜单上运行10-20个命令(CentOS),而不是从头开始写作,而是考虑使用Ncurses或类似于此图像的内容,非常基本
那将运行任何命令,也许在完成后结束时暂停,这就是这样。 我寻找了一段时间来寻找一个基本的示例菜单,可以抓取和不运气。 发现了大量的参考文献,有90%的简单链接,过时的等。 如果有人使用诅咒的示例,或者是一种更好的简单方法,让我只能从菜单中运行一堆控制台命令,那就太好了。
谢谢!
I'm trying to have 10-20 commands I run (centos) on a simple menu, Instead of writing from scratch, I was thinking of using ncurses or something similar to this image, very basic
Then that would run whatever command, maybe pause at the end when completed and thats it.
I looked for a while for a basic example menu to grab and go and no luck.
Found a ton of references with 90% simply dead links, outdated etc.
If someone has either an example using curses or a better simple way for me to just have a bunch of console commands run from the menu, that would be great.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个示例,使用 cursess :: ui 和a curses :: ui :: listbox 显示菜单:
Here is an example using Curses::UI and a Curses::UI::Listbox to display the menu: