改行のないマニュアルページ

改行のないマニュアルページ

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

man --no-justify COLUMNS変数が実行とレンダリング、実行の間のいくつかの段落でより多くの文字に設定されているか、設定されることを意図しているようです。

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

おすすめ記事