I am frequently using ssh terminal. If I enter a command that spans multiple lines, the characters which do not fit onto the first line are going to the beginning... not of the next but of the current line! As if no \n, but just \r was inserted. This get even more messed up when I am scrolling up the history, as the terminal starts to delete previously output lines, and if I delete some characters in a previously used multiline command, not only that character but a whole previous line gets deleted. The bash version on the server I am connecting to is 2.05b.0(1) (yep, that old - ask our server administrator). SSH version is OpenSSH 7.4.
Asked
Active
Viewed 121 times
0
PS1
-related problem. See this: Bash prompt getting garbled when I browse history. – Kamil Maciorowski Jan 22 '19 at 20:50$PS2
. Please do this:$ echo -n $PS2 | hexdump -C
and the same for$PS1
and put the results into the question (formatted ascode
, please) – wef Jan 22 '19 at 22:13