This is my environment :
X server : VCXsrv Windows
Window manager : XFCE/WSL
bash : 5.0.0(1)-release
Environment variable TERM : xterm
When I type a command longer than the width of xterm, the line scrolls horizontally instead of wrapping the line, like
<lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
Some online articles suggest following command :
bind 'set horizontal-scroll-mode off'
but it didn't fix the issue in my context.
What else can I try to troubleshoot ?
Update 1:
bash-5.0$ printf "%s\n" "$PS1"
\s-\v\$
Update 2:
/bin$ tput up
tput: unknown terminfo capability 'up'
bindcommand, what else can I try ? – Philippe Sep 19 '20 at 10:45TERMvariable? If it's wrong thenoffwill not work. – Kamil Maciorowski Sep 19 '20 at 10:51xterm-256color, oransi,vt100, etc. – Philippe Sep 19 '20 at 10:58xterm; but does your machine know whatxtermmeans? – Kamil Maciorowski Sep 19 '20 at 11:06infocmp xterm, and gotxterm|xterm-debian|X11 terminal emulator ...Do I need to check anything in particular in that output ? – Philippe Sep 19 '20 at 11:16bindcommand in the first place. – Philippe Sep 19 '20 at 12:12<is not part of the command – Philippe Sep 19 '20 at 12:48bind 'set horizontal-scroll-mode off'did you get any message or error returned? For abashshell using readline it should be the right solution, which is what's puzzling me – Chris Davies Sep 19 '20 at 13:24bindcommand – Philippe Sep 19 '20 at 13:26am(automatic right margin) – Sep 19 '20 at 13:35am:am, bce, km, mc5i, mir, msgr, npc, xenl,– Philippe Sep 19 '20 at 13:50set horizontal-scroll-mode offin~/.inputrcand starting a new shell? – peterph Sep 19 '20 at 13:59set horizontal-scroll-mode offin ~/.inputrc and starting a new shell. – Philippe Sep 19 '20 at 14:09tput lines, andtput columns– Philippe Sep 19 '20 at 14:11setterm -linewrap onwork? – Quasímodo Sep 19 '20 at 16:57setterm, still the same issue. – Philippe Sep 19 '20 at 17:00tput up | hexdumpyields. https://unix.stackexchange.com/a/567575/5132 – JdeBP Sep 20 '20 at 10:17tput upyieldstput: unknown terminfo capability 'up'– Philippe Sep 20 '20 at 10:44