|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
ksh: wrap lines?
Is it possible to configure ksh to wrap lines which exceed the terminal width?
I couldn't find anything appropriate in ksh/stty/getty man pages... |
|
|||
I think some wrap occur through your terminal.
from man xterm Quote:
in man vim |
|
|||
Thanks.
I'm away of 'set textwidth=n' in vim but I want line wrapping the the shell. 'xterm -aw' doesn't fix that. Running bash in the same xterm *does* line wrapping. So it seems this behavior is causes by ksh. Any further ideas? |
|
|||
I think you want to do a set -o multiline.
Excerpt from man ksh: multiline: The built-in editors will use multiple lines on the screen for lines that are longer than the width of the screen. BTW, if using the standard vi editor in OpenBSD, not vim, you will get line wrapping at 72 characters with the following in a ~/.exrc :> set wrapmargin=8 set autoindent set shiftwidth=4 |
|
||||
Quote:
|
|
|||
Yes if I recall it is 5.12; so for OpenBSD ksh console, I think the LINES perimeter needs to be set.
If in X, one could do something like this in a ~/.profile: alias resize='eval `/usr/bin/X11/resize`' or eval $(resize) -- the resize utility has two options:> [-u] [-s [row col] Set the ksh alias; after resizing a window in X, but before running an application, type: resize that should do it. |
|
|||
'resize' doesn't work for me. It sets the COLUMNS and LINES variable but the ksh still doesn't wrap long lines.
It hard to imagine all ksh users are satisfied with the non-wrapping behavior... |
|
|||
Just to clarify, you mean wrapping your input lines?
edit: or I guess output from commands such as ps -aux Last edited by denta; 2nd May 2013 at 10:26 AM. |
|
|||
Yes.
Because I'd like to see the whole command before hitting Return. |
|
|||
Alright! It can be done by disabling emacs editing mode.
Code:
$ set +o emacs Last edited by denta; 3rd May 2013 at 02:34 PM. |
|
|||
Thank you! I always knew emacs is the root of all evil.
Strangely enough 'set -o vi' behaves like emacs with respect to line wrapping. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Deleting whitespace from otherwise blank lines | J65nko | Guides | 4 | 18th June 2013 08:44 AM |
Deleting lines with certain letters/keywords. | bigb89 | Programming | 4 | 12th November 2008 11:59 PM |
Putting Lines to Together. | bigb89 | Programming | 4 | 24th September 2008 03:59 AM |
Adding multiple lines into file | c0mrade | Programming | 4 | 7th June 2008 11:03 PM |