diff options
author | pgen <p.gen.progs@gmail.com> | 2023-06-21 23:57:20 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2023-06-21 23:57:20 +0200 |
commit | a3044266f398018ae0eb250e59779ca38aef52a3 (patch) | |
tree | 5678c6a6da8b58e940ee9fe73f4ca9fedf13bcc2 /smenu.1 | |
parent | a28220698d7857ab9d2b3b64ab53740b0ca4a7a8 (diff) |
Add a new example to the manual
Diffstat (limited to 'smenu.1')
-rw-r--r-- | smenu.1 | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1465,6 +1465,17 @@ Only the numbered word(s) will be prefixed. This directive can be useful when you want to post-process the output according to its direct access number. + +Example: +.br +\f(CBR=$(echo a b c | smenu -N -D d:-)\fR +.br +will display: +.br +\f(CB1)\f(CR a \f(CB2)\f(CR b \f(CB3)\f(CR c\fR +.br +The variable \f(CBR\fP will then contain the string \f(CB2-b\fP if +\f(CBb\fP is selected. . .TP \f(CBs\fP (\fB-F\fP|\fB-en\fP|\fB-embedded_number\fP, \ |