Answers:
alias wrapon='tput rmam'
&alias wrapoff='tput smam'
通过less -S
以下管道输出:
-S or --chop-long-lines
Causes lines longer than the screen width to be chopped (truncated)
rather than wrapped. That is, the portion of a long line that does
not fit in the screen width is not shown. The default is to wrap
long lines; that is, display the remainder on the next line.
我试图解释这里可能发生的情况,尽管这并不能像您所希望的那样用滚动条水平滚动。
-fmessage-length=0
设置了标记后,我仍然会获得线路警告/错误输出。我不知道(暂时)。