1

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'
Philippe
  • 1,435

2 Answers2

1

Finally I got 5.0.18(1)-release source from github, compiled it which fixed the problem.

Philippe
  • 1,435
0

I'm running Linux Mint, and Bash 4.4.20 is installed by default.

I had manually compiled and installed Bash 5.0 and ran into the OP's rendering problem.

Upgrading to Bash 5.1 solved this rendering problem for me.

jmrah
  • 101