I connect to a Slackware server. When a command is longer than the size of the putty window, the line continues in the same line, and the start of the command disappears as I continue adding to the same command, just putting a "<" at the beginning of the line.
When I work on the Red Hat server, I can see the whole command because the console just adds lines as it needs.
I don't know where I turn on word wrapping. Where can I set the Slackware server to wrap words as my Red Hat server does?
P.S.: Excuse my English.
Best Answer
This may be because you're using
bash
(or other shell which uses readline) and in your~/.inputrc
(or global/etc/inputrc
) you haveFrom
man readline
:Solution: delete the line (the default setting is
Off
) or explicitly set the option toOff
:Readline uses
/etc/inputrc
only if~/.inputrc
doesn't exist or cannot be read (~/.inputrc
may also$include /etc/inputrc
), so even if there'sOn
in/etc/inputrc
and you cannot or don't want to change it, you can always overwrite the setting by editing~/.inputrc
.The change won't automatically affect already running shells. You can reload the config with
(see this), or change only that setting with
The readline library will also fall back to
horizontal-scroll-mode
if theTERM
environment variable is set to a terminal name not found in the terminfo database; you can check if that's the case with theinfocmp
command. See here for how you can remediate the situation.A similar interface (but displaying the
<
mark at the right end of the line) is used in some pdksh-derived shells which do not use readline (notablymksh
, the default on Android). For that case there's no possible work-around.