2 Copyright (C) 1989-2000, 2001, 2002, 2003, 2005, 2006, 2009
3 Free Software Foundation, Inc.
5 Permission is granted to make and distribute verbatim copies of
6 this manual provided the copyright notice and this permission notice
7 are preserved on all copies.
9 Permission is granted to copy and distribute modified versions of this
10 manual under the conditions for verbatim copying, provided that the
11 entire resulting derived work is distributed under the terms of a
12 permission notice identical to this one.
14 Permission is granted to copy and distribute translations of this
15 manual into another language, under the above conditions for modified
16 versions, except that this permission notice may be included in
17 translations approved by the Free Software Foundation instead of in
21 .do nr grotty_C \n[.C]
24 .TH GROTTY @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
27 grotty \- groff driver for typewriter-like devices
40 It is possible to have whitespace between the
42 option and its parameter.
48 translates the output of GNU
50 into a form suitable for typewriter-like devices.
53 should be invoked by using the
61 option on ASCII based systems, and with
65 on EBCDIC based hosts.
66 If no files are given,
68 reads the standard input.
73 to read the standard input.
74 Output is written to the standard output.
79 emits SGR escape sequences (from ISO 6429, also called ANSI color escapes)
80 to change text attributes (bold, italic, colors).
81 This makes it possible to have eight different background and
82 foreground colors; additionally, bold and italic
83 attributes can be used \f[BI]at the same time\f[] (by using the BI font).
86 The following colors are defined in
88 black, white, red, green, blue, yellow, magenta, cyan.
89 Unknown colors are mapped to the default color (which is dependent on the
90 settings of the terminal; in most cases, this is black for the foreground
91 and white for the background).
96 switch to revert to the old behaviour, printing a bold character
102 and an italic character
108 At the same time, color output is disabled.
109 The same effect can be achieved by setting either the
111 environment variable or using the `sgr' X command (see below).
114 For SGR support, it is necessary to use the
118 to disable the interpretation of
121 Consequently, all programs which use
123 as the pager program have to pass this option to it.
126 in particular, either add
130 environment variable, e.g.\&
134 .B PAGER="/usr/bin/less -R"
144 to set the pager executable and its options, or modify the configuration
147 in a similar fashion.
150 versions, you have to use the
152 environment variable instead.
156 old output format can be displayed on a terminal
163 are also able to display these sequences.
174 There is no need to filter the output through
178 never outputs reverse line feeds.
181 The font description file may contain a command
189 is a decimal integer.
193 then the font is treated as an italic font;
194 if the 02 bit is set,
195 then it is treated as a bold font.
196 The code field in the font description field gives the
197 code which is used to output the character.
198 This code can also be used in the
208 Suppress the use of overstriking for bold characters.
215 Use only overstriking for bold-italic characters.
224 old output format (see above).
225 This also disables color output.
235 .B \[rs]D'l\|.\|.\|.\&'
236 commands that have at least one zero argument
237 (and so are either horizontal or vertical)
247 .B \[rs]D'p\|.\|.\|.\&'
248 commands which consist entirely of horizontal and vertical lines.
253 Use form feeds in the output.
254 A form feed is output at the end of each page that has no output
261 to the search path for font and device description files;
263 is the name of the device, usually
272 Use horizontal tabs in the output.
273 Tabs are assumed to be set every 8 columns.
277 Use escape sequences to set the italic text attribute instead of the
278 underline attribute for italic fonts (`I' and `BI').
279 Note that most terminals (including xterm) don't support this.
286 Suppress overstriking (other than for bold or underlined characters in
287 case the old output format has been activated with
292 Use escape sequences to set the reverse text attribute instead of the
293 underline attribute for italic fonts (`I' and `BI').
300 Suppress the use of underlining for italic characters.
307 Use only underlining for bold-italic characters.
314 Print the version number.
320 understands a single X command produced using the
325 .BI \[rs]X'tty:\ sgr\ n '
328 is non-zero or missing, enable SGR output (this is the default), otherwise
329 use the old drawing scheme for bold and underline.
337 If set, the old drawing scheme for bold and underline (using the
338 backspace character) is active.
345 A list of directories in which to search for the
347 directory in addition to the default ones.
350 .BR @g@troff (@MAN1EXT@)
352 .BR \%groff_font (@MAN5EXT@)
359 .B @FONTDIR@/devascii/DESC
360 Device description file for
365 .BI @FONTDIR@/devascii/ F
366 Font description file for font
373 .B @FONTDIR@/devlatin1/DESC
374 Device description file for
379 .BI @FONTDIR@/devlatin1/ F
380 Font description file for font
387 .B @FONTDIR@/devutf8/DESC
388 Device description file for
393 .BI @FONTDIR@/devutf8/ F
394 Font description file for font
401 .B @FONTDIR@/devcp1047/DESC
402 Device description file for
407 .BI @FONTDIR@/devcp1047/ F
408 Font description file for font
415 .B @MACRODIR@/tty.tmac
420 .B @MACRODIR@/tty-char.tmac
421 Additional klugdey character definitions for use with
425 Note that on EBCDIC hosts, only files for the
434 is intended only for simple documents.
437 There is no support for fractional horizontal or vertical motions.
440 There is no support for
443 other than horizontal and vertical lines.
446 Characters above the first line (ie with a vertical position of\~0)
450 Color handling is different compared to
451 .BR grops (@MAN1EXT@).
453 doesn't set the fill color for closed graphic objects (which
455 doesn't support anyway) but changes the background color of the character
456 cell, affecting all subsequent operations.
461 .BR groff (@MAN1EXT@),
462 .BR @g@troff (@MAN1EXT@),
463 .BR groff_out (@MAN5EXT@),
464 .BR groff_font (@MAN5EXT@),
465 .BR groff_char (@MAN7EXT@),