summaryrefslogtreecommitdiffstats
path: root/smenu.1
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2023-06-16 23:17:49 +0200
committerpgen <p.gen.progs@gmail.com>2023-06-16 23:17:49 +0200
commita28220698d7857ab9d2b3b64ab53740b0ca4a7a8 (patch)
tree2158eb5e1202248999fad2f2a3dd24d7265753f2 /smenu.1
parentc64b35d2843e9d2d03775aee59c1b17a05b1d3ad (diff)
Improve the manual
Diffstat (limited to 'smenu.1')
-rw-r--r--smenu.114
1 files changed, 14 insertions, 0 deletions
diff --git a/smenu.1 b/smenu.1
index 621ced4..e578a4e 100644
--- a/smenu.1
+++ b/smenu.1
@@ -1423,6 +1423,20 @@ of all the numbers to extract have the same size as the algorithm looks
for a digit to identify the beginning of the number to extract.
Hence, for example, \fB1\fP should appear as \fB01\fP in the input is
\f(CBn\fP is set to \f(CB2\fP.
+
+Example:
+.br
+\f(CBecho x2y xx3y | smenu -F -D l:\\( o:1+ n:1\fR
+.br
+will display:
+.br
+\f(CB(2)\f(CR xy \f(CB(3)\f(CR xxy\fR
+
+\f(CBecho x2y xx3y | smenu -F -D l:\\( o:1 n:1\fR
+.br
+will display (note the absense of the '\f(CB+\fP' character):
+.br
+\f(CB(2)\f(CR xy xx3y\fR
.
.TP
\f(CBn\fP (\fB-F\fP|\fB-en\fP|\fB-embedded_number\fP option)