From c0cff00dc8ccef1a22bc1e7d792f56d2e858bf4f Mon Sep 17 00:00:00 2001 From: phillbush Date: Tue, 19 May 2020 05:56:06 -0300 Subject: [PATCH] Referring to the new changes in the manpage. --- xmenu.1 | 6 ++++++ xmenu.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/xmenu.1 b/xmenu.1 index 0e830d2..e9500ff 100644 --- a/xmenu.1 +++ b/xmenu.1 @@ -4,6 +4,7 @@ xmenu \- menu utility for X .SH SYNOPSIS .B xmenu .RB [ \-w ] +.RI [ title... ] .SH DESCRIPTION .B xmenu is a menu for X, @@ -35,8 +36,13 @@ An item without label is considered a separator and is drawn as a thin line in t separating the item above from the item below. .IP The command is the string that will be output after selecting the item. +If the item spawns a submenu, the command is the title of the menu. .IP The newline terminates the item specification. +.PP +If the argument +.I title +is given, the title of the menu window is set to it. .SH USAGE .B xmenu is controlled by the mouse, diff --git a/xmenu.c b/xmenu.c index cc19921..4490b2c 100644 --- a/xmenu.c +++ b/xmenu.c @@ -827,6 +827,6 @@ cleanup(void) static void usage(void) { - (void)fprintf(stderr, "usage: xmenu [-w]\n"); + (void)fprintf(stderr, "usage: xmenu [-w] title...\n"); exit(1); }