Resizing a small window prints the bash prompt repeatedly

Bug #1929751 reported by Tyler Peterson
6
This bug affects 1 person
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-1ubuntu1~20.04
ProcVersionSignature: Ubuntu 5.4.0-73.82-generic 5.4.106
Uname: Linux 5.4.0-73-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.17
Architecture: amd64
CasperMD5CheckResult: skip
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_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-terminal
UpgradeStatus: Upgraded to focal on 2020-10-17 (221 days ago)

Revision history for this message
Tyler Peterson (starhero21) wrote :
description: updated
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.