Horizontal scrolling in a bash window

I used printf to output the column display of a text file.

However, the length I need will cause the columns to flow to the next row.

I was looking for a flag or workaround that will make the console window scroll and can only see the following:

set horizontal scroll mode On

This is directly under #! / Bin / bash, but cannot work

Is there another way?

+3
source share
2 answers

, man , ncurses, , .

, , , .

+1

. . less -S, , .

+3

Source: https://habr.com/ru/post/1730550/


All Articles