Public bug reported:

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)

** Affects: gnome-terminal (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug focal

** Description changed:

  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.
  
  
- Description:  Ubuntu 20.04.2 LTS
- Release:      20.04
- 
- gnome-terminal:
-   Installed: 3.36.2-1ubuntu1~20.04
-   Candidate: 3.36.2-1ubuntu1~20.04
-   Version table:
-  *** 3.36.2-1ubuntu1~20.04 500
-         500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 
Packages
-         100 /var/lib/dpkg/status
-      3.36.1.1-1ubuntu1 500
-         500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages
- 
  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
+  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)

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu.
https://bugs.launchpad.net/bugs/1929751

Title:
  Resizing a small window prints the bash prompt repeatedly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1929751/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to