summaryrefslogtreecommitdiffstats
path: root/smenu.1
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2023-05-20 23:37:16 +0200
committerpgen <p.gen.progs@gmail.com>2023-05-20 23:43:48 +0200
commit91be7e9f234b45d6ee3bcfc3fa474695bf5aa6dc (patch)
treeeaa1d6cc11625180689035db18152a861b1084f1 /smenu.1
parent23fcabd4630eca89914d0003cf9f5af7949321d3 (diff)
Start to improve the -D option description
Give some examples to help use this option.
Diffstat (limited to 'smenu.1')
-rw-r--r--smenu.122
1 files changed, 22 insertions, 0 deletions
diff --git a/smenu.1 b/smenu.1
index 779fcff..971b370 100644
--- a/smenu.1
+++ b/smenu.1
@@ -1255,6 +1255,12 @@ format \fBx\fP:\fBy\fP where \fBx\fP can be:
Here \fBy\fP is the \fBUTF-8\fP character (in native or \fI\\u\fP or
\fI\\U\fP form) to print before the number.
The default is a single space.
+
+Example:
+.br
+\f(CRecho test | smenu -N -D l:\\(\fP
+.br
+Will display: '\f(CB(1)\f(CR test\fR'
.
.TP
\f(CBr\fP (\fB-F\fP|\fB-en\fP|\fB-embedded_number\fP, \
@@ -1262,6 +1268,12 @@ The default is a single space.
Here \fBy\fP is the \fBUTF-8\fP character (in native or \fI\\u\fP or
\fI\\U\fP form) to print after the number.
The default is \f(CB)\fP.
+
+Example:
+.br
+\f(CRecho test | smenu -N -D r:\\>\fP
+.br
+Will display: ' \f(CB1>\f(CR test\fR'
.
.TP
\f(CBa\fP (\fB-F\fP|\fB-en\fP|\fB-embedded_number\fP, \
@@ -1270,6 +1282,16 @@ Here \fBy\fP is '\f(CBleft\fP' (or one of its prefixes) if the number
must be \fIleft\fP aligned, or '\f(CBright\fP' (or one of its prefixes)
if it must be \fIright\fP aligned.
The default is \f(CBright\fP.
+
+Example:
+.br
+\f(CRecho test | smenu -N -D a:right w:3\fP
+.br
+Will display: ' \f(CB1)\f(CR test\fR'
+
+\f(CRecho test | smenu -N -D a:left w:3\fP
+.br
+Will display: ' \f(CB1 )\f(CR test\fR'
.
.TP
\f(CBp\fP (\fB-F\fP|\fB-en\fP|\fB-embedded_number\fP, \