summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjoey <joey@a4a2c43b-8ac3-0310-8836-e0e880c912e2>2003-12-30 16:07:11 +0000
committerjoey <joey@a4a2c43b-8ac3-0310-8836-e0e880c912e2>2003-12-30 16:07:11 +0000
commitdc1b4dbde675f94fa20e5eeeadf3b7f70965ab13 (patch)
treeb359eeee743dc8f8f6142ab796fc149462ec8ce4 /doc
parentd5ed9d43fc49de8e0a1ef747593af8d65efcfbb2 (diff)
* Patch to add a new helptext command. Thanks, John Daley.
* Move the stdin reopening hack to rc.c, so it is done only if a rc file was read from stdin. Reverted the earlier change, so it opens /dev/tty again. This will break on non-unix98 pty systems (linux without /dev/pts), but at least it will work better than the old thing, which did not work at all.
Diffstat (limited to 'doc')
-rw-r--r--doc/pdmenurc.man.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/pdmenurc.man.in b/doc/pdmenurc.man.in
index 9cfc8ec..940a4a3 100644
--- a/doc/pdmenurc.man.in
+++ b/doc/pdmenurc.man.in
@@ -207,6 +207,22 @@ If this is present, it will appear in the menu where the nop is. Otherwise,
the nop in the menu will be a blank line.
.RE
.TP
+helptext
+This changes the helptext of the currently displayed menu. The syntax is:
+.RS
+.PP
+\fIhelptext:desc:flags:help text\fR
+.TP
+desc
+The text to appear on the menu.
+.TP
+flags
+Currently the only available flag is "command", which makes the help text
+be read in from a command in the help text field, instead of using the
+literal value of the field. The first line the command outputs becomes the
+new help text.
+.RE
+.TP
exit
If only one menu is on the screen when this is selected, then
.BR pdmenu (1)