← 返回命令列表

Linux command

grotty 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Display in terminal

groff -Tutf8 [file.roff]

ASCII output

groff -Tascii [file.roff]

Direct grotty usage

grotty [file]

Disable SGR sequences

grotty -c [file]

说明

grotty is a groff output driver for terminal display. It produces ASCII or UTF-8 output suitable for viewing in text terminals, supporting bold and underline via SGR escape sequences or overstriking. It is the driver used for man page display and terminal document viewing.

参数

-b
Suppress bold sequences.
-c
Use old-style output (no SGR).
-d
Ignore SGR escapes.
-f
Feed mode for printers.
-i
Use italic font.
-o
Suppress overstriking.
-u
Suppress underlining.
-F _DIR_
Font directory.
--help
Display help information.

FAQ

What is the grotty command used for?

grotty is a groff output driver for terminal display. It produces ASCII or UTF-8 output suitable for viewing in text terminals, supporting bold and underline via SGR escape sequences or overstriking. It is the driver used for man page display and terminal document viewing.

How do I run a basic grotty example?

Run `groff -Tutf8 [file.roff]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -b do in grotty?

Suppress bold sequences.