LWN.net Logo

Design simple menus with Cursed Menu

Design simple menus with Cursed Menu

Posted Apr 10, 2008 12:25 UTC (Thu) by rwmj (subscriber, #5474)
Parent article: Design simple menus with Cursed Menu

It's a bit unclear how you would go about modifying what appears in the menu. Write a new .cmd file?

Anyway I'll offer a couple of alternatives with my comments:

The first is the venerable dialog command, used (as a fork) by the Linux kernel configuration system. I think the original is also used by Debian. It's a bit limited in as much as you can basically only have a single menu / input form on screen at once, but two advantages are that it is easy to shell-script and available absolutely everywhere.

A second one is newt which is the system used by the Anaconda (Fedora, RHEL, CentOS, etc.) installer, at least when in text mode. This is a lot more flexible, but significantly harder to use. The C interface is barely documented and has a number of problems. I wrote some OCaml bindings and sent patches upstream to fix the most egregious problems in the C code.

Rich.


(Log in to post comments)

Design simple menus with Cursed Menu

Posted Apr 10, 2008 16:09 UTC (Thu) by tzafrir (subscriber, #11501) [Link]

In addition to newt, there's also S-Lang.

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds