2007-Dec-19
Someone asked on pkgsrc-users list about something in pkgsrc similar to xprompt.If you need just a choice button, maybe x11/xmessage will work.
Or use x11/xdialog which is a X-based drop-in for curses "dialog" and maybe with --inputbox.
The dialog manpage on NetBSD 4.0_RC4 says ``Some widgets, e.g., checklist, will write text to dialog's output. Normally that is the standard error, but there are options for changing this: "--output-fd", "--stderr" and "--stdout".'' And says `` Direct output to the standard error. This is the default...''
dialog --calendar "Enter Birthday" 1 1 1 1 1972(On an unrelated note, what is the height width for with --calendar?)
dialog --inputbox "Enter some text" 10 50
dialog --editbox /etc/motd 15
No output to stderr seen. If I redirect 2>/to/a/file it works. I don't know why it doesn't write to stderr console if I do not redirect.
By the way, I wrote a program like this a few years back called xui. See two examples:
xui-example-network.xui-20020831.png xui-example-sample.xui-20020831.pngIt has several menu options which can be piped into it. Some notes (with some other programs listed) and code and sample specifications are in that directory