Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/window Don't use .Xo/.Xc. Fix markup of alias command.



details:   https://anonhg.NetBSD.org/src/rev/f371c8fd5dc3
branches:  trunk
changeset: 746773:f371c8fd5dc3
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Aug 19 15:17:05 2009 +0000

description:
Don't use .Xo/.Xc. Fix markup of alias command.

diffstat:

 usr.bin/window/window.1 |  159 +++++++++--------------------------------------
 1 files changed, 30 insertions(+), 129 deletions(-)

diffs (282 lines):

diff -r a2f6a77a0f49 -r f371c8fd5dc3 usr.bin/window/window.1
--- a/usr.bin/window/window.1   Wed Aug 19 15:17:00 2009 +0000
+++ b/usr.bin/window/window.1   Wed Aug 19 15:17:05 2009 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: window.1,v 1.18 2009/06/25 23:20:55 wiz Exp $
+.\"    $NetBSD: window.1,v 1.19 2009/08/19 15:17:05 joerg Exp $
 .\"
 .\" Copyright (c) 1985, 1990, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -471,11 +471,7 @@
 .Pp
 The operators in order of increasing precedence:
 .Bl -tag -width Fl
-.It Xo
-.Aq Va expr1
-.Ic =
-.Aq Va expr2
-.Xc
+.It Ao Va expr1 Ac Ic = Ao Va expr2 Ac
 Assignment.
 The variable of name
 .Aq Va expr1 ,
@@ -484,13 +480,7 @@
 .Aq Va expr2 .
 Returns the value of
 .Aq Va expr2 .
-.It Xo
-.Aq Va expr1
-.Ic \&?
-.Aq Va expr2
-.Ic :
-.Aq Va expr3
-.Xc
+.It Ao Va expr1 Ac Ic \&? Ao Va expr2 Ac Ic : Ao Va expr3 Ac
 Returns the value of
 .Aq Va expr2
 if
@@ -507,11 +497,7 @@
 .Aq Va Expr1
 must
 be numeric.
-.It Xo
-.Aq Va expr1
-.Ic \&|\&|
-.Aq Va expr2
-.Xc
+.It Ao Va expr1 Ac Ic \&|\&| Ao Va expr2 Ac
 Logical or.
 Numeric values only.
 Short circuit evaluation is supported
@@ -520,70 +506,33 @@
 evaluates true, then
 .Aq Va expr2
 is not evaluated).
-.It Xo
-.Aq Va expr1
-.Ic \&\*[Am]\&\*[Am]
-.Aq Va expr2
-.Xc
+.It Ao Va expr1 Ac Ic \&\*[Am]\&\*[Am] Ao Va expr2 Ac
 Logical and with short circuit evaluation.
 Numeric values only.
-.It Xo
-.Aq Va expr1
-.Ic \&|
-.Aq Va expr2
-.Xc
+.It Ao Va expr1 Ac Ic \&| Ao Va expr2 Ac
 Bitwise or.
 Numeric values only.
-.It Xo
-.Aq Va expr1
-.Ic ^
-.Aq Va expr2
-.Xc
+.It Ao Va expr1 Ac Ic ^ Ao Va expr2 Ac
 Bitwise exclusive or.
 Numeric values only.
-.It Xo
-.Aq Va expr1
-.Ic \&\*[Am]
-.Aq Va expr2
-.Xc
+.It Ao Va expr1 Ac Ic \&\*[Am] Ao Va expr2 Ac
 Bitwise and.
 Numeric values only.
-.It Xo
-.Aq Va expr1
-.Ic ==
-.Aq Va expr2 ,
-.Aq Va expr1
-.Ic !=
-.Aq expr2
-.Xc
+.It Ao Va expr1 Ac Ic == Ao Va expr2 Ac , Ao Va expr1 Ac Ic != Ao expr2 Ac
 Comparison (equal and not equal, respectively).
 The boolean result (either 1 or 0) of the comparison is returned.
 The operands can be numeric or string valued.
 One string operand
 forces the other to be converted to a string in necessary.
-.It Xo
-.Aq Va expr1
-.Ic \*[Lt]
-.Aq Va expr2 ,
-.Aq Va expr1
-.Ic \*[Gt]
-.Aq Va expr2 ,
-.Aq Va expr1
-.Ic \*[Le]
-.Aq Va expr2 ,
-.Xc
+.It Ao Va expr1 Ac Ic \*[Lt] Ao Va expr2 Ac , \
+Ao Va expr1 Ac Ic \*[Gt] Ao Va expr2 Ac , \
+Ao Va expr1 Ac Ic \*[Le] Ao Va expr2 Ac ,
 Less than, greater than, less than or equal to,
 greater than or equal to.
 Both numeric and string values, with
 automatic conversion as above.
-.It Xo
-.Aq Va expr1
-.Ic \*[Lt]\*[Lt]
-.Aq Va expr2 ,
-.Aq Va expr1
-.Ic \*[Gt]\*[Gt]
-.Aq Va expr2
-.Xc
+.It Ao Va expr1 Ac Ic \*[Lt]\*[Lt] Ao Va expr2 Ac , \
+Ao Va expr1 Ac Ic \*[Gt]\*[Gt] Ao Va expr2 Ac
 If both operands are numbers,
 .Aq Va expr1
 is bit
@@ -600,40 +549,19 @@
 .Aq Va expr2
 is also a string, then its length is used
 in place of its value).
-.It Xo
-.Aq Va expr1
-.Ic +
-.Aq Va expr2 ,
-.Aq Va expr1
-.Ic -
-.Aq Va expr2
-.Xc
+.It Ao Va expr1 Ac Ic + Ao Va expr2 Ac , Ao Va expr1 Ac Ic - Ao Va expr2 Ac
 Addition and subtraction on numbers.
 For
 .Dq + ,
 if one
 argument is a string, then the other is converted to a string,
 and the result is the concatenation of the two strings.
-.It Xo
-.Aq Va expr1
-.Ic \&*
-.Aq Va expr2 ,
-.Aq Va expr1
-.Ic \&/
-.Aq Va expr2 ,
-.Aq Va expr1
-.Ic \&%
-.Aq Va expr2
-.Xc
+.It Ao Va expr1 Ac Ic \&* Ao Va expr2 Ac , \
+Ao Va expr1 Ac Ic \&/ Ao Va expr2 Ac , Ao Va expr1 Ac Ic \&% Ao Va expr2 Ac
 Multiplication, division, modulo.
 Numbers only.
-.It Xo
-.Ic \- Ns Aq Va expr ,
-.Ic ~ Ns Aq Va expr ,
-.Ic \&! Ns Aq Va expr ,
-.Ic \&$ Ns Aq Va expr ,
-.Ic \&$? Ns Aq Va expr
-.Xc
+.It Ic \- Ns Ao Va expr Ac , Ic ~ Ns Ao Va expr Ac , \
+Ic \&! Ns Ao Va expr Ac , Ic \&$ Ns Ao Va expr Ac , Ic \&$? Ns Ao Va expr Ac
 The first three are unary minus, bitwise complement and logical complement
 on numbers only.
 The operator,
@@ -654,9 +582,7 @@
 .Aq Va expr ,
 and returns 1
 if it exists or 0 otherwise.
-.It Xo
-.Ao Va expr Ac Ns Pq Aq Ar arglist
-.Xc
+.It Ao Va expr Ac Ns Pq Aq Ar arglist
 Function call.
 .Aq Va Expr
 must be a string that is the unique
@@ -720,10 +646,7 @@
 obvious meanings, or it can be a numeric expression,
 in which case a non-zero value is true.
 .Bl -tag -width Fl
-.It Xo
-.Ic alias Ns Po Bq Aq Ar string ,
-.Bq Aq Ar string\-list Pc
-.Xc
+.It Ic alias Ns Po Bo Ao Ar string Ac Bc , Bo Ao Ar string\-list Ac Bc Pc
 If no argument is given, all currently defined alias macros are
 listed.
 Otherwise,
@@ -802,10 +725,7 @@
 Default is no change.
 The old value (as a number) is returned.
 The initial value is 1 (true).
-.It Xo
-.Ic echo Ns ( Op Ar window ,
-.Bq Aq Ar string\-list )
-.Xc
+.It Ic echo Ns ( Oo Ar window Oc , Bq Aq Ar string\-list )
 Write the list of strings,
 .Aq Ar string-list ,
 to
@@ -831,10 +751,7 @@
 .Fl ^X ,
 meaning
 .No control\- Ns Ar X .
-.It Xo
-.Ic foreground Ns ( Bq Ar window ,
-.Bq Ar flag )
-.Xc
+.It Ic foreground Ns ( Bo Ar window Bc , Bq Ar flag )
 Move
 .Nm
 in or out of foreground.
@@ -847,10 +764,7 @@
 default for
 .Ar flag
 is no change.
-.It Xo
-.Ic label Ns ( Bq Ar window ,
-.Bq Ar label )
-.Xc
+.It Ic label Ns ( Bo Ar window Bc , Bq Ar label )
 Set the label of
 .Nm
 to
@@ -909,20 +823,10 @@
 No arguments.
 List all variables.
 No value is returned.
-.It Xo
-.Ic window Ns ( Bq Ar row ,
-.Bq Ar column ,
-.Bq Ar nrow ,
-.Bq Ar ncol ,
-.Bq Ar nline ,
-.Bq Ar label ,
-.Bq Ar pty ,
-.Bq Ar frame ,
-.Bq Ar mapnl ,
-.Bq Ar keepopen ,
-.Bq Ar smooth ,
-.Bq Ar shell ) .
-.Xc
+.It Ic window Ns ( Bo Ar row Bc , Bo Ar column Bc , Bo Ar nrow Bc , \
+Bo Ar ncol Bc , Bo Ar nline Bc , Bo Ar label Bc , Bo Ar pty Bc , \
+Bo Ar frame Bc , Bo Ar mapnl Bc , Bo Ar keepopen Bc , Bo Ar smooth Bc , \
+Bo Ar shell Bc ) .
 Open a window with upper left corner at
 .Ar row  ,
 .Ar column
@@ -978,10 +882,7 @@
 .Ar default_shell  ,
 see above).
 The created window's identifier is returned as a number.
-.It Xo
-.Ic write Ns ( Bq Ar window ,
-.Bq Aq Ar string\-list )
-.Xc
+.It Ic write Ns ( Bo Ar window Bc , Bq Aq Ar string\-list )
 Send the list of strings,
 .Aq Ar string-list ,
 to
@@ -1056,7 +957,7 @@
 and run tcpdump, the lower one will take
 the remaining two thirds of the screen and run
 the default shell:
-.Bd -literal -offset
+.Bd -literal
 window r=1, nr=$nrow/3-1, l=tcpdump\\ pcn0, sh=tcpdump \\-ni pcn0
 window r=$nrow/3, nr=2*$nrow/3+1
 .Ed



Home | Main Index | Thread Index | Old Index