Disable Line wrap in Terminal

How do you disable line wrap in bash? As in

$ls -la
or
mysql> select * from db;

displaying exceedingly lengthy data. Or perhaps readline options to disable wrapping?

May be just a horizontal scroll bar in Terminal?

G5 Quad, Mac OS X (10.5.8), Quadro FX

Posted on Aug 27, 2009 7:52 AM

Reply
5 replies

Aug 27, 2009 12:32 PM in response to Mabel O'Farrell

Thanks for responding. I believe that setting is for input not output. Plus it is on. I think terminal needs a horizontal scrool bar.

$ bind -v
set bind-tty-special-chars on
set blink-matching-paren on
set byte-oriented off
set completion-ignore-case off
set convert-meta off
set disable-completion off
set enable-keypad off
set expand-tilde off
set history-preserve-point off
set horizontal-scroll-mode on
set input-meta on
set mark-directories on
set mark-modified-lines off
set mark-symlinked-directories off
set match-hidden-files on
set meta-flag on
set output-meta on
set page-completions on
set prefer-visible-bell on
set print-completions-horizontally off
set show-all-if-ambiguous off
set show-all-if-unmodified off
set visible-stats off
set bell-style audible
set comment-begin #
set completion-query-items 100
set editing-mode emacs
set keymap emacs

Aug 27, 2009 2:37 PM in response to terrencebrown

I looked at this again and it does indeed only work on input. There was this thread:

http://discussions.apple.com/thread.jspa?threadID=1682458

that discussed escape sequences, but it doesn't work either. Changing any of the settings in the com.apple.Terminal.plist file that have anything at all to do with wrapping doesn't change the behavior either. The only thing that would come close to this functionality is the Xaw scrollbar functions in Xterm under X11.

So I guess that it currently isn't possible to make it work with the Leopard terminal -used to work in Tiger.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Disable Line wrap in Terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.