Resizing a small window prints the bash prompt repeatedly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-terminal (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
If when I resize the gnome-terminal window it becomes too narrow to fit the entire length of the bash prompt, it prints parts of the prompt to the above line. It should just wrap the portion of the prompt that exceeds the window width to the next line, but the characters that precede those wrapped characters end up printed above the actual prompt. Specifically it begins when the space character following the '$' needs to wrap to the next line. This print happens every time the window size changes (either vertically or horizontally) while the window is narrower than the prompt.
If my window is 100 characters wide and the prompt is 70 characters long, with the cursor being the 71st character, when I shrink the window to 70 characters wide, there are two prompt texts, one that I could type a command on and another above it. If I shrink the window further to 50 characters, I end up with several lines of prompt with increasingly truncated parts of the prompt. If I expand back to 100 characters, most of the new lines with be just the 'user@host" portion of the prompt, with varying truncations.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gnome-terminal 3.36.2-
ProcVersionSign
Uname: Linux 5.4.0-73-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed May 26 15:30:32 2021
InstallationDate: Installed on 2017-11-18 (1285 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
ProcEnviron:
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-terminal
UpgradeStatus: Upgraded to focal on 2020-10-17 (221 days ago)