MacOS – Disable line wrapping for output in the Terminal

macosterminal

I often read outputs in the terminal that get wrapped as they are too long. Since there is no way that I can modify the printed output, I need to let the Terminal allow for horizontal scrolling.

Is there a modification I can make to the default OS X Terminal to disable line wrapping and allow for horizontal scrolling?

Or do you know another alternative I can use?

Best Answer

tput did the trick for me:

tput rmam

disables line wrapping.

tput smam

enables line wrapping.