summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2023-04-11 22:49:59 +0200
committerpgen <p.gen.progs@gmail.com>2023-04-11 22:49:59 +0200
commit705168196949090a6c642cb9bbe77605b16620b7 (patch)
treee4e544c2951d8d2633e4bf1e24e972042b6e8713
parentd91f6553d0a9400759c6422c6e6902a3608df22c (diff)
Add an alignment example in the manual
-rw-r--r--smenu.123
1 files changed, 22 insertions, 1 deletions
diff --git a/smenu.1 b/smenu.1
index 6fa6f09..a64147b 100644
--- a/smenu.1
+++ b/smenu.1
@@ -1534,7 +1534,28 @@ Other example where multiple selectors are used as multiple arguments:
\fB-R\fP|\fB-rs\fP|\fB-rows\fP|\fB-rows_select\fP option, the specified
column alignments will be protected from any future row alignment
directives.
-Otherwise row alignment directives will take precedence.
+Otherwise row alignment directives will take precedence. For example:
+
+\f(CBecho "a b c\\\\naa bb cc\\\\naaaa bbbb cccc"
+| smenu -c -g\\| -C c2 -R r2\fP
+.br
+.nf
+Gives:
+\f(CRa | b |c\fP
+\f(CR aa| bb | cc <-- \fPCol. 2 remains centered as \f(CB-C\fP was used first.
+\f(CRaaaa|bbbb|cccc\fP
+.fi
+
+But
+\f(CBecho "a b c\\\\naa bb cc\\\\naaaa bbbb cccc"
+| smenu -c -g\\| -R r2 -C c2\fP
+.br
+.nf
+Gives:
+\f(CRa | b |c\fP
+\f(CR aa| bb| cc <-- -R\fP takes precedence as it was used first.
+\f(CRaaaa|bbbb|cccc\fP
+.fi
.IP "\fB-R\fP|\fB-rs\fP|\fB-rows\fP|\fB-rows_select\fP... \fIselectors\fP..."
(Allowed in the "Columns" and "Lines" contexts.)