如何让 man(1) 使用整个终端宽度?

Jen*_*ens 5 freebsd man terminal

我在 FreeBSD 上,使用宽 xterm,例如每行 132 个字符。跑步时

$ man man
Run Code Online (Sandbox Code Playgroud)

手册页的格式适合每行终端宽度 80 个字符。有没有办法让格式化程序(groff,grotty)使用我指定的线宽?

我阅读了 man(1) 和 groff(1) 的手册,但找不到合适的选项。我知道它可以完成,因为我已经看到它在某些 Linux 发行版上工作。

mur*_*uru 9

在我的 Linux 系统上,man 1 man提到了MANWIDTH环境变量,现在我查了一下,它也在FreeBSD 手册man(1)页中指定:

MANWIDTH     If set to a numeric value, used as the width manpages should
             be displayed.  Otherwise, if set to a special value ``tty'',
             and output is to a terminal, the pages may be displayed over
             the whole width of the screen.
Run Code Online (Sandbox Code Playgroud)