2 .\" Automated Testing Framework (atf)
4 .\" Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
17 .\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
18 .\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 .\" IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
21 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
23 .\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 .\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27 .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 .Nd formats a text paragraph to fit nicely on screen
37 .Op Ar str1 Op Ar .. strN
42 .Op Ar str1 Op Ar .. strN
47 formats text messages to not overflow the terminal's width, and optionally
48 adds a prefix string to them.
49 Messages can be fed through the standard input or through multiple
50 arguments; in the latter case, all of them are concatenated as if they were
51 separated by a single space.
52 Different lines (those separated by a new-line character) are treated as
53 different paragraphs and thus formatted accordingly.
55 In the first synopsis form,
57 formats the message to not overflow the terminal's width.
58 The message is supposed to start at column 0.
60 In the second synopsis form,
62 also formats the message to not overflow the terminal's width, but it
63 appends a tag to the beginning of the string.
64 This tag may or may be not repeated on each line of the text; if it is
65 not repeated, the text is simply indented.
66 This synopsis form is useful to easily format two-column tables, being the
67 first one much shorter than the second one.
68 The message is supposed to start at column 0.
70 In the third synopsis form,
72 will print information about all supported options and their purpose.
74 The following options are available:
75 .Bl -tag -width XlXlengthXX
77 Shows a short summary of all available options and their purpose.
79 Specifies the length in characters of te tag.
80 Useful if the tag is shorter than the desired length, which happens when
81 formatting two-column tables.
83 Repeat the tag on each line.
84 Otherwise it is only shown on the first one, and all others are indented
85 appropriately using whitespace.
87 Specifies the tag to use