{
    "content": [
        {
            "type": "text",
            "text": "# grotty(1) (man)\n\n**Summary:** grotty - groff driver for typewriter-like devices\n\n**Synopsis:** grotty [-bBcdfhioruUv] [-F dir] [file ...]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -c | — | — |  |\n| -c | — | — |  |\n| -c | — | — | bian-specific: This option is enabled by default when using the man and mdoc macro packages. It can be disabled by defau |\n| -d | — | — | least one zero argument (and so are either horizontal or vertical) using -, |, and + characters. In a similar way, grott |\n| -f | — | — | no output on its last line. |\n| -F | — | — | files; name is the name of the device, usually ascii, latin1, utf8, or cp1047. |\n| -h | — | — |  |\n| -i | — | — | bute for italic fonts (‘I’ and ‘BI’). Note that most terminals (including xterm) don't support this. Ignored if -c is ac |\n| -o | — | — | output format has been activated with -c). |\n| -r | — | — | bute for italic fonts (‘I’ and ‘BI’). Ignored if -c is active. |\n| -c | — | — |  |\n| -c | — | — |  |\n| -v | — | — |  |\n\n## See Also\n\n- groff(1)\n- troff(1)\n- groffout(5)\n- grofffont(5)\n- groffchar(7)\n- ul(1)\n- more(1)\n- man(1)\n- less(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (2 lines) — 1 subsections\n  - -Tutf8 -Tcp1047 -Tutf8 (54 lines)\n- **OPTIONS** (2 lines) — 13 subsections\n  - -b -c (1 lines)\n  - -B -c (1 lines)\n  - -c (5 lines)\n  - -d (4 lines)\n  - -f (2 lines)\n  - -F (2 lines)\n  - -h (1 lines)\n  - -i (3 lines)\n  - -o (2 lines)\n  - -r (2 lines)\n  - -u -c (1 lines)\n  - -U -c (1 lines)\n  - -v (1 lines)\n- **USAGE** (6 lines)\n- **ENVIRONMENT** (8 lines)\n- **FILES** (32 lines)\n- **BUGS** (12 lines)\n- **SEE ALSO** (6 lines)\n\n## Full Content\n\n### NAME\n\ngrotty - groff driver for typewriter-like devices\n\n### SYNOPSIS\n\ngrotty [-bBcdfhioruUv] [-F dir] [file ...]\n\n### DESCRIPTION\n\ngrotty  translates  the output of GNU troff into a form suitable for typewriter-like devices.\nNormally grotty should be invoked by using the groff command  with  a  -Tascii,  -Tlatin1  or\n\n#### -Tutf8 -Tcp1047 -Tutf8\n\nno files are given, grotty reads the standard input.  A filename of - also causes  grotty  to\nread the standard input.  Output is written to the standard output.\n\nBy default, grotty emits SGR escape sequences (from ISO 6429, also called ANSI color escapes)\nto change text attributes (bold, italic, colors).  This makes it possible to have eight  dif‐\nferent background and foreground colors; additionally, bold and italic attributes can be used\naatt tthhee ssaammee ttiimmee (by using the BI font).\n\nThe following colors are defined in tty.tmac: black, white, red,  green,  blue,  yellow,  ma‐\ngenta,  cyan.  Unknown colors are mapped to the default color (which is dependent on the set‐\ntings of the terminal; in most cases, this is black for the  foreground  and  white  for  the\nbackground).\n\nUse  the  -c  switch to revert to the old behaviour, printing a bold character c with the se‐\nquence “c BACKSPACE c” and an italic character c by the sequence “  BACKSPACE  c”.   At  the\nsame  time,  color output is disabled.  The same effect can be achieved by setting either the\nGROFFNOSGR environment variable or using the ‘sgr’ X command (see below).\n\n(Debian-specific: The old behaviour is the default when using the man and  mdoc  macro  pack‐\nages,  because  most pagers either fail to cope with SGR escape sequences or need special op‐\ntions to do so.  SGR output can be re-enabled permanently by editing /etc/groff/man.local and\n/etc/groff/mdoc.local,  or temporarily by setting the GROFFSGR environment variable to some‐\nthing non-empty.)\n\nFor SGR support, it is necessary to use the -R option of less(1) to disable  the  interpreta‐\ntion  of  grotty's old output format.  Consequently, all programs which use less as the pager\nprogram have to pass this option to it.  For man(1) in particular, either add -R to the PAGER\nenvironment variable, e.g.\n\nPAGER=\"/usr/bin/less -R\"\nexport PAGER\n\nor  use  the -P option of man to set the pager executable and its options, or modify the con‐\nfiguration file of man in a similar fashion.  Note that with some man(1) versions,  you  have\nto use the MANPAGER environment variable instead.\n\ngrotty's  old  output  format can be displayed on a terminal by piping through ul(1).  Pagers\nsuch as more(1) or less(1) are also able to display these sequences.  Use  either  -B  or  -U\nwhen  piping  into  less(1); use -b when piping into more(1).  There is no need to filter the\noutput through col(1) since grotty never outputs reverse line feeds.\n\nThe font description file may contain a command\n\ninternalname n\n\nwhere n is a decimal integer.  If the 01 bit in n is set, then the  font  is  treated  as  an\nitalic  font; if the 02 bit is set, then it is treated as a bold font.  The code field in the\nfont description field gives the code which is used to output the character.  This  code  can\nalso be used in the \\N escape sequence in troff.\n\nIf  the  DESC file contains the keyword unicode, grotty emits Unicode characters in UTF-8 en‐\ncoding.  Otherwise, it emits characters in a single-byte encoding depending on  the  data  in\nthe font description files.  See the grofffont(5) man page for more details.\n\n### OPTIONS\n\nWhitespace is permitted between a command-line option and its argument.\n\n#### -b -c\n\n#### -B -c\n\n#### -c\n\nbian-specific: This option is enabled by default when using the  man  and  mdoc  macro\npackages.   It  can be disabled by default permanently by editing /etc/groff/man.local\nand /etc/groff/mdoc.local, or temporarily by setting the GROFFSGR  environment  vari‐\nable to something non-empty.)\n\n#### -d\n\nleast one zero argument (and so are either horizontal or vertical) using -, |,  and  +\ncharacters.  In a similar way, grotty handles \\D'p...' commands which consist entirely\nof horizontal and vertical lines.\n\n#### -f\n\nno output on its last line.\n\n#### -F\n\nfiles; name is the name of the device, usually ascii, latin1, utf8, or cp1047.\n\n#### -h\n\n#### -i\n\nbute  for  italic  fonts  (‘I’  and ‘BI’).  Note that most terminals (including xterm)\ndon't support this.  Ignored if -c is active.\n\n#### -o\n\noutput format has been activated with -c).\n\n#### -r\n\nbute for italic fonts (‘I’ and ‘BI’).  Ignored if -c is active.\n\n#### -u -c\n\n#### -U -c\n\n#### -v\n\n### USAGE\n\ngrotty understands a single X command produced using the \\X escape sequence.\n\n\\X'tty: sgr n'\nIf n is non-zero or missing, enable SGR output (this is the  default),  otherwise  use\nthe old drawing scheme for bold and underline.\n\n### ENVIRONMENT\n\nGROFFNOSGR\nIf  set, the old drawing scheme for bold and underline (using the backspace character)\nis active.  Colors are disabled.\n\nGROFFFONTPATH\nA list of directories in which to search for the devname directory in addition to  the\ndefault ones.  See troff(1) and grofffont(5) for more details.\n\n### FILES\n\n/usr/share/groff/1.22.4/font/devascii/DESC\nDevice description file for the ascii device.\n\n/usr/share/groff/1.22.4/font/devascii/F\nFont description file for font F of the ascii device.\n\n/usr/share/groff/1.22.4/font/devlatin1/DESC\nDevice description file for the latin1 device.\n\n/usr/share/groff/1.22.4/font/devlatin1/F\nFont description file for font F of the latin1 device.\n\n/usr/share/groff/1.22.4/font/devutf8/DESC\nDevice description file for the utf8 device.\n\n/usr/share/groff/1.22.4/font/devutf8/F\nFont description file for font F of the utf8 device.\n\n/usr/share/groff/1.22.4/font/devcp1047/DESC\nDevice description file for the cp1047 device.\n\n/usr/share/groff/1.22.4/font/devcp1047/F\nFont description file for font F of the cp1047 device.\n\n/usr/share/groff/1.22.4/tmac/tty.tmac\nMacros for use with grotty.\n\n/usr/share/groff/1.22.4/tmac/tty-char.tmac\nAdditional character definitions for use with grotty.\n\nNote that on EBCDIC hosts, only files for the cp1047 device is installed.\n\n### BUGS\n\ngrotty is intended only for simple documents.\n\nThere is no support for fractional horizontal or vertical motions.\n\nThere is no support for \\D commands other than horizontal and vertical lines.\n\nCharacters above the first line (i.e. with a vertical position of 0) cannot be printed.\n\nColor  handling  differs from grops(1).  \\M doesn't set the fill color for closed graphic ob‐\njects (which grotty doesn't support anyway) but changes the background color of the character\ncell, affecting all subsequent operations.\n\n### SEE ALSO\n\ngroff(1),  troff(1),  groffout(5),  grofffont(5),  groffchar(7),  ul(1),  more(1), man(1),\nless(1)\n\n\n\ngroff 1.22.4                                23 March 2022                                  GROTTY(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "grotty",
        "section": "1",
        "mode": "man",
        "summary": "grotty - groff driver for typewriter-like devices",
        "synopsis": "grotty [-bBcdfhioruUv] [-F dir] [file ...]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-c",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-c",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-c",
                "long": null,
                "arg": null,
                "description": "bian-specific: This option is enabled by default when using the man and mdoc macro packages. It can be disabled by default permanently by editing /etc/groff/man.local and /etc/groff/mdoc.local, or temporarily by setting the GROFFSGR environment vari‐ able to something non-empty.)"
            },
            {
                "flag": "-d",
                "long": null,
                "arg": null,
                "description": "least one zero argument (and so are either horizontal or vertical) using -, |, and + characters. In a similar way, grotty handles \\D'p...' commands which consist entirely of horizontal and vertical lines."
            },
            {
                "flag": "-f",
                "long": null,
                "arg": null,
                "description": "no output on its last line."
            },
            {
                "flag": "-F",
                "long": null,
                "arg": null,
                "description": "files; name is the name of the device, usually ascii, latin1, utf8, or cp1047."
            },
            {
                "flag": "-h",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-i",
                "long": null,
                "arg": null,
                "description": "bute for italic fonts (‘I’ and ‘BI’). Note that most terminals (including xterm) don't support this. Ignored if -c is active."
            },
            {
                "flag": "-o",
                "long": null,
                "arg": null,
                "description": "output format has been activated with -c)."
            },
            {
                "flag": "-r",
                "long": null,
                "arg": null,
                "description": "bute for italic fonts (‘I’ and ‘BI’). Ignored if -c is active."
            },
            {
                "flag": "-c",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-c",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": ""
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "groff",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/groff/1/json"
            },
            {
                "name": "troff",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/troff/1/json"
            },
            {
                "name": "groffout",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/groffout/5/json"
            },
            {
                "name": "grofffont",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/grofffont/5/json"
            },
            {
                "name": "groffchar",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/groffchar/7/json"
            },
            {
                "name": "ul",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ul/1/json"
            },
            {
                "name": "more",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/more/1/json"
            },
            {
                "name": "man",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/man/1/json"
            },
            {
                "name": "less",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/less/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": [
                    {
                        "name": "-Tutf8 -Tcp1047 -Tutf8",
                        "lines": 54
                    }
                ]
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "-b -c",
                        "lines": 1,
                        "flag": "-c"
                    },
                    {
                        "name": "-B -c",
                        "lines": 1,
                        "flag": "-c"
                    },
                    {
                        "name": "-c",
                        "lines": 5,
                        "flag": "-c"
                    },
                    {
                        "name": "-d",
                        "lines": 4,
                        "flag": "-d"
                    },
                    {
                        "name": "-f",
                        "lines": 2,
                        "flag": "-f"
                    },
                    {
                        "name": "-F",
                        "lines": 2,
                        "flag": "-F"
                    },
                    {
                        "name": "-h",
                        "lines": 1,
                        "flag": "-h"
                    },
                    {
                        "name": "-i",
                        "lines": 3,
                        "flag": "-i"
                    },
                    {
                        "name": "-o",
                        "lines": 2,
                        "flag": "-o"
                    },
                    {
                        "name": "-r",
                        "lines": 2,
                        "flag": "-r"
                    },
                    {
                        "name": "-u -c",
                        "lines": 1,
                        "flag": "-c"
                    },
                    {
                        "name": "-U -c",
                        "lines": 1,
                        "flag": "-c"
                    },
                    {
                        "name": "-v",
                        "lines": 1,
                        "flag": "-v"
                    }
                ]
            },
            {
                "name": "USAGE",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 32,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}