On 10/18/05, Michael O'Keefe <[EMAIL PROTECTED]> wrote:
> Deke Clinger wrote:
> > less -S:
> >
> > -S or --chop-long-lines
> > Causes lines longer than the screen width to be chopped
> > rather
> > than folded. That is, the remainder of a long line is
> > simply
> > discarded. The default is to fold long lines; that is,
> > display
> > the remainder on the next line.
>
> Is there a terminal that won't wrap ? (which is really what is
> responsible for the wrapping, not as the "default" above seems to imply
> that less does it for you)
Ah, but if you find a terminal that really won't wrap, you will also
find that "less"
wraps for you regardless of the terminal. Xterm can be set to not wrap.
$ xterm +aw # or <ctrl><middle mouse> to get a menu, unselect Auto
Wraparound
Its behavior then is that all characters in excess of the line length
pile up on the right-most position of the line. "less" wraps the
lines before they are sent to the screen, and "less -S" really does
chop the lines.
Other terminal emulators that I have just looked at, namely
/usr/bin/gnome-terminal, /usr/bin/konsole, and /usr/bin/rxvt do not
seem to have the "aw" option that xterm has.
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list