Terminal cursor glitch with history when last command doesn't end with new line

Bug #1947731 reported by Kiruahxh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mate-terminal (Ubuntu)
New
Undecided
Unassigned

Bug Description

1) Open a bash terminal (ex: gnome-terminal, xfce terminal, etc)
2) Type a command larger than approximately 3/4 of the command prompt that doesn't finish with a new line
3) Go up in history
4) Press 'Start of line' key

https://user-images.githubusercontent.com/2413781/137861612-0c1bfcf9-1c36-41a4-b01d-e1c54b9147b5.mp4
https://user-images.githubusercontent.com/2413781/137862023-c4620bbc-fa38-4f06-b85b-f1b544911a19.mp4

It seems to be related to the command prompt env variable (PS1): https://unix.stackexchange.com/questions/105958/terminal-prompt-not-wrapping-correctly
However, it happens with the default command prompt of Ubuntu 20.04:
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

Revision history for this message
Norbert (nrbrtx) wrote :

Please specify your Ubuntu MATE version, run `apport-collect 1947731` and also report bug to upstream https://github.com/mate-desktop/mate-terminal , then share a link here.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.