NAME
grotty - groff driver for typewriter-like devices
SYNOPSIS
ggrroottttyy [ -bbBBccddffhhiioorruuUUvv ] [ -FFdir ] [ files... ]
It is possible to have whitespace between the -FF option and its parame-
ter.DESCRIPTION
ggrroottttyy translates the output of GNU ttrrooffff into a form suitable fortypewriter-like devices. Normally ggrroottttyy should be invoked by using
the ggrrooffff command with a -TTaasscciiii, -TTllaattiinn11 or -TTuuttff88 option on ASCII
based systems, and with -TTccpp11004477 and -TTuuttff88 on EBCDIC based hosts. If
no files are given, ggrroottttyy will read the standard input. A filename of- will also cause ggrroottttyy to read the standard input. Output is written
to the standard output. By default, ggrroottttyy emits SGR escape sequences (from ISO 6429, also called ANSI color escapes) to change text attributes (bold, italic, colors). This makes it possible to have eight different background and foreground colors; additionally, bold and italic attributes can be used aatt tthhee ssaammee ttiimmee (by using the BI font). The following colors are defined in ttttyy..ttmmaacc: black, white, red, green, blue, yellow, magenta, cyan. Unknown colors are mapped to the default color (which is dependent on the settings of the terminal; in most cases, this is black for the foreground and white for the background).Use the -cc switch to revert to the old behaviour, printing a bold char-
acter c with the sequence `c BACKSPACE c' and an italic character c bythe sequence ` BACKSPACE c'. At the same time, color output is dis-
abled. The same effect can be achieved by setting either the GGRROOFFFFNNOOSSGGRR environment variable or using the `sgr' X command (see below).For SGR support, it is necessary to use the -RR option of lleessss(1) to
disable the interpretation of ggrroottttyy's old output format. Conse-
quently, all programs which use lleessss as the pager program have to passthis option to it. For mmaann(1) in particular, either add -RR to the
$$PPAAGGEERR environment variable, e.g.
PPAAGGEERR==""//uussrr//bbiinn//lleessss -RR""
eexxppoorrtt PPAAGGEERRor use the -PP option of mmaann to set the pager executable and its
options, or modify the configuration file of mmaann in a similar fashion. ggrroottttyy's old output format can be displayed on a terminal by pipingthrough uull(1). Pagers such as mmoorree(1) or lleessss(1) are also able to dis-
play these sequences. Use either -BB or -UU when piping into lleessss(1);
use -bb when piping into mmoorree(1). There is no need to filter the output
through ccooll(1) since ggrroottttyy never outputs reverse line feeds. The font description file may contain a command iinntteerrnnaallnnaammee n where n is a decimal integer. If the 01 bit in n is set, then the font will be treated as an italic font; if the 02 bit is set, then it will be treated as a bold font. The code field in the font description field gives the code which will be used to output the character. This code can also be used in the \\NN escape sequence in ttrrooffff. OOPPTTIIOONNSS-bb Suppress the use of overstriking for bold characters. Ignored
if -cc isn't used.
-BB Use only overstriking for bold-italic characters. Ignored if -cc
isn't used.-cc Use ggrroottttyy's old output format (see above). This also disables
color output.-dd Ignore all \\DD commands. Without this ggrroottttyy will render
\\DD''ll......'' commands that have at least one zero argument (and soare either horizontal or vertical) using -, ||, and ++ characters.
-ff Use form feeds in the output. A form feed will be output at the
end of each page that has no output on its last line.-FFdir Prepend directory dir//ddeevvname to the search path for font and
device description files; name is the name of the device, usu-
ally aasscciiii, llaattiinn11, uuttff88, or ccpp11004477.-hh Use horizontal tabs in the output. Tabs are assumed to be set
every 8 columns.-ii Use escape sequences to set the italic text attribute instead of
the underline attribute for italic fonts (`I' and `BI'). Note that most terminals (including xterm) don't support this.Ignored if -cc is active.
-oo Suppress overstriking (other than for bold or underlined charac-
ters in case the old output format has been activated with -cc).
-rr Use escape sequences to set the reverse text attribute instead
of the underline attribute for italic fonts (`I' and `BI').Ignored if -cc is active.
-uu Suppress the use of underlining for italic characters. Ignored
if -cc isn't used.
-UU Use only underlining for bold-italic characters. Ignored if -cc
isn't used.-vv Print the version number.
UUSSAAGGEE ggrroottttyy understands a single X command produced using the \\XX escape sequence. \\XX''ttttyy:: ssggrr n''If n is non-zero or missing, enable SGR output (this is the
default), otherwise use the old drawing scheme for bold and underline. ENVIRONMENT GGRROOFFFFNNOOSSGGRR If set, the old drawing scheme for bold and underline (using the backspace character) is active. Colors are disabled. FILES //uussrr//sshhaarree//ggrrooffff//11..1199..11//ffoonntt//ddeevvaasscciiii//DDEESSCC Device description file for aasscciiii device. //uussrr//sshhaarree//ggrrooffff//11..1199..11//ffoonntt//ddeevvaasscciiii//F Font description file for font F of aasscciiii device. //uussrr//sshhaarree//ggrrooffff//11..1199..11//ffoonntt//ddeevvllaattiinn11//DDEESSCC Device description file for llaattiinn11 device. //uussrr//sshhaarree//ggrrooffff//11..1199..11//ffoonntt//ddeevvllaattiinn11//F Font description file for font F of llaattiinn11 device. //uussrr//sshhaarree//ggrrooffff//11..1199..11//ffoonntt//ddeevvuuttff88//DDEESSCC Device description file for uuttff88 device. //uussrr//sshhaarree//ggrrooffff//11..1199..11//ffoonntt//ddeevvuuttff88//F Font description file for font F of uuttff88 device. //uussrr//sshhaarree//ggrrooffff//11..1199..11//ffoonntt//ddeevvccpp11004477//DDEESSCC Device description file for ccpp11004477 device. //uussrr//sshhaarree//ggrrooffff//11..1199..11//ffoonntt//ddeevvccpp11004477//F Font description file for font F of ccpp11004477 device. //uussrr//sshhaarree//ggrrooffff//11..1199..11//ttmmaacc//ttttyy..ttmmaacc Macros for use with ggrroottttyy.//uussrr//sshhaarree//ggrrooffff//11..1199..11//ttmmaacc//ttttyy-cchhaarr..ttmmaacc
Additional klugdey character definitions for use with ggrroottttyy. Note that on EBCDIC hosts, only files for the ccpp11004477 device will be installed.BUGS
ggrroottttyy is intended only for simple documents. There is no support for fractional horizontal or vertical motions. There is no support for \\DD commands other than horizontal and vertical lines.Characters above the first line (ie with a vertical position of 0) can-
not be printed. Color handling is different compared to ggrrooppss(1). \\MM doesn't set the fill color for closed graphic objects (which ggrroottttyy doesn't supportanyway) but changes the background color of the character cell, affect-
ing all subsequent operations.SEE ALSO
ggrrooffff(1), ttrrooffff(1), ggrrooffffoouutt(5), ggrrooffffffoonntt(5), ggrrooffffcchhaarr(7), uull(1), mmoorree(1), mmaann(1), lleessss(1) Groff Version 1.19.1 18 July 2003 GROTTY(1)