So... for bug 110096, for example, the reporter was using the following
prompting string:

PS1='work:\e[0;31m\w\e[m # '

Which falls straight into question E3, and gives out the repositioning
issue.

By changing the PS1 string to enclose non-printing characters in '\['
and '\]' delimiters, like:

PS1='work:\[\e[0;31m\]\w\[\e[m\] # '

the issue is resolved.

-- 
non-ASCII characters in PS1 cause cursor to appear in wrong place
https://bugs.launchpad.net/bugs/102179
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to