I've reproduced your issue (using the exact same prompt string as
yours). It's also buggy for me in xterm. I'm pretty sure it's a readline
or bash issue.

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

Title:
  Input prompt behaves incorrectly if working directory path spans two
  lines

Status in gnome-terminal package in Ubuntu:
  New

Bug description:
  1) The release of Ubuntu you are using: Ubuntu 17.10

  2) The version of the package you are using: 3.24.2-0ubuntu4

  3) What you expected to happen: The input prompt should behave the
  same, no matter what the working directory is.

  4) What happened instead: The cursor starts overlapping the working
  directory text (see attached screenshot, which shows a 80×24 terminal
  window in a directory called
  
“/home/test/01234567890123456789/01234567890123456789/a/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789”).

  On text input, the inputted text overwrites the working directory
  text. When pressing backspace, the entire second line is deleted
  (including the $ character). This makes using the history (up arrow)
  very confusing because afterwards, the actual input line characters do
  not seem to correspond to the displayed text anymore, i.e. characters
  inserted at a certain point are actually shifted in the resulting
  line, making it very difficult to properly type in commands.

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to