summaryrefslogtreecommitdiffstats
path: root/src/roff/nroff/nroff.1.man
blob: 4ca9cf76247776616820c4abd5bd80b82947a378 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
.TH @g@nroff @MAN1EXT@ "@MDATE@" "groff @VERSION@"
.SH Name
@g@nroff \- format documents with groff for TTY (terminal) devices
.
.
.\" ====================================================================
.\" Legal Terms
.\" ====================================================================
.\"
.\" Copyright (C) 1989-2020 Free Software Foundation, Inc.
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of
.\" this manual under the conditions for verbatim copying, provided that
.\" the entire resulting derived work is distributed under the terms of
.\" a permission notice identical to this one.
.\"
.\" Permission is granted to copy and distribute translations of this
.\" manual into another language, under the above conditions for
.\" modified versions, except that this permission notice may be
.\" included in translations approved by the Free Software Foundation
.\" instead of in the original English.
.
.
.\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
.do nr *groff_nroff_1_man_C \n[.cp]
.cp 0
.
.
.\" ====================================================================
.SH Synopsis
.\" ====================================================================
.
.SY @g@nroff
.RB [ \-cCEhipStUV ]
[\c
.BI \-d cs\c
]
[\c
.BI \-m name\c
]
[\c
.BI \-M dir\c
]
[\c
.BI \-n num\c
]
[\c
.BI \-o list\c
]
[\c
.BI \-P post-proc-option\c
]
[\c
.BI \-r cn\c
]
[\c
.BI \-T name\c
]
[\c
.BI \-w warning\c
]
[\c
.BI \-W warning\c
]
.RI [ file
\&.\|.\|.\&]
.YS
.
.
.SY @g@nroff
.B \-\-help
.YS
.
.
.SY @g@nroff
.B \-v
.
.SY @g@nroff
.B \-\-version
.YS
.
.
.\" ====================================================================
.SH Description
.\" ====================================================================
.
.I \%@g@nroff
formats documents written in the
.IR roff (@MAN7EXT@)
language for typewriter-like devices such as terminal emulators.
.
GNU
.I nroff \" GNU
emulates the AT&T
.I nroff \" AT&T
command using
.IR groff (@MAN1EXT@).
.
.I \%@g@nroff
generates output via
.IR grotty (@MAN1EXT@),
.IR groff 's
terminal output driver,
which needs to know the character encoding scheme used by the device.
.
Consequently,
acceptable arguments to the
.B \-T
option are
.BR ascii ,
.BR latin1 ,
.BR utf8 ,
and
.BR cp1047 ;
any others are ignored.
.
If neither the
.I \%GROFF_TYPESETTER
environment variable nor the
.B \-T
command-line option
(which overrides the environment variable)
specifies a (valid) device,
.I \%@g@nroff
consults the locale to select an appropriate output device.
.
It first tries the
.IR locale (1)
program,
then checks several locale-related environment variables;
see section \[lq]Environment\[rq], below.
.
If all of the foregoing fail,
.B \-Tascii
is implied.
.
.
.P
Whitespace is
.I not
permitted between an option and its argument.
.
The
.BR \-C ,
.BR \-d ,
.BR \-E ,
.BR \-i ,
.BR \-m ,
.BR \-M ,
.BR \-n ,
.BR \-o ,
.BR \-P ,
.BR \-r ,
.BR \-w ,
and
.B \-W
options have the effect described in
.IR \%@g@troff (@MAN1EXT@).
.
.B \-c
and
.B \-h
are equivalent to
.RB \[lq] \-P\-c \[rq]
and
.RB \[lq] \-P\-h \[rq],
respectively.
.
In addition,
this implementation ignores the AT&T
.I nroff \" AT&T
options
.BR \-e ,
.BR \-q ,
and
.B \-s
(which are not implemented in
.IR groff ).
.
The options
.B \-p
(pic),
.B \-t
.RB ( tbl ),
.B \-S
(safer),
and
.B \-U
(unsafe) are passed to
.IR groff .
.
.B \-V
causes
.I \%@g@nroff
to display the constructed
.I groff
command on the standard output,
but does not execute it.
.
.B \-v
and
.B \-\-version
show version information,
while
.B \-\-help
displays a usage message;
all exit afterward.
.
.
.\" ====================================================================
.SH Environment
.\" ====================================================================
.
.TP
.I GROFF_BIN_PATH
is a colon-separated list of directories in which to search for the
.I groff
executable before searching in
.IR PATH .
.
If unset,
.I \%@BINDIR@
is used.
.
.
.TP
.I GROFF_TYPESETTER
specifies the default output device for
.IR groff .
.
.
.TP
.I LC_ALL
.TQ
.I LC_CTYPE
.TQ
.I LANG
.TQ
.I LESSCHARSET
are pattern-matched in this order for contents matching standard
character encodings supported by
.I groff
in the event no
.B \-T
option is given and
.I \%GROFF_TYPESETTER
is unset.
.
.
.\" ====================================================================
.SH Notes
.\" ====================================================================
.
.P
Pager programs like
.IR more (1)
and
.IR less (1)
may require command-line options to correctly handle some output
sequences;
see
.IR \%grotty (@MAN1EXT@).
.
.
.P
Character definitions in the file
.I \%@MACRODIR@/\:tty\-char\:.tmac
are loaded to replace unrepresentable glyphs.
.
.
.\" ====================================================================
.SH "See also"
.\" ====================================================================
.
.IR groff (@MAN1EXT@),
.IR \%@g@troff (@MAN1EXT@),
.IR grotty (@MAN1EXT@),
.IR locale (1),
.IR roff (@MAN7EXT@)
.
.
.\" Restore compatibility mode (for, e.g., Solaris 10/11).
.cp \n[*groff_nroff_1_man_C]
.
.
.\" Local Variables:
.\" fill-column: 72
.\" mode: nroff
.\" End:
.\" vim: set filetype=groff textwidth=72: