没有换行的手册页

没有换行的手册页

man man我在一个瘦终端窗口和一个胖终端窗口中运行。我不在乎事情是否合理,只要完成我下面描述的行为即可。我确实尝试过man --nj man,但没有成功。

瘦终端窗口

我所看到的

man is the system's manual pager. Each page argument given to man is normally the name of a program,
util-
ity or function. The manual page associated with each of these arguments is then found and displayed.
A
section, if provided, will direct man to look only in that section of the manual. The default action is
to
search in all of the available sections following a pre-defined order (see DEFAULTS), and to show only
the
first page found, even if page exists in several sections.

我想看什么

man is the system's manual pager. Each page argument given to man is normally the name of a program,
utility or function. The manual page associated with each of these arguments is then found and 
displayed. A section, if provided, will direct man to look only in that section of the manual. The
default action is to search in all of the available sections following a pre-defined order (see DEFAULTS),
and to show only the first page found, even if page exists in several sections.

胖终端窗口

我所看到的

man is the system's manual pager. Each page argument given to man is normally the name of a program, util-
ity or function. The manual page associated with each of these arguments is then found and displayed. A
section, if provided, will direct man to look only in that section of the manual. The default action is to
search in all of the available sections following a pre-defined order (see DEFAULTS), and to show only the
first page found, even if page exists in several sections.

我想看什么

一条长线,在终端窗口的末端断开。

答案1

看起来您的 COLUMNS 变量已设置或旨在在执行 man --no-justify 和渲染之间的某些段落中设置更多的字符,运行

echo COLUMNS=$COLUMNS
COLUMNS=`tput cols` man --nj --no-hyphenation man

为了消除任何疑问,请使用以下方法对有效列进行计数(不是每组的前 2-3 位数字代表达到的字符数,然后很容易看到哪些字符到达终端中最右边的字符)

echo 123456789 223456789 323456789 423456789 523456789 623456789 723456789 823456789 823456789 923456789 103456789 113456789 123456789 133456789 143456789 153456789 163456789 173456789 183456789 193456789 203456789 213456789 223456789 233456789 243456789 253456789 263456789 273456789 283456789 293456789 303456789 313456789 323456789 333456789 343456789 353456789 363456789 373456789 383456789 393456789

相关内容