Setting terminal title from shell causes refresh to slow down
Submitted by Erik Stambaugh
Link to original bug (#379993)
Description
Please describe the problem: I first noticed that pasting into most windows was slow, like several characters per second were updated. Thought it was Yet Another Annoying Feature and didn't worry about it.
Essentially, what it turns out is happening, is that my PS1 variable is setting the window title, and having set the window title causes the screen updates to be visibly slow. You can even see when typing, as the cursor bounces back and forth along the line.
This happens on several different machines, using different architectures and distros. The common thing is that my .bash_profile is identical, and they have all been updated with reasonably new versions of GNOME
Steps to reproduce:
- Open a new terminal with bash. Don't use screen (screen seems to clear it)
- PS1="[\033]0;\u@\h\007\033[1;36m]\u@\h:[\033[32m]\w/[\e[0m]$ "
- Select some text and try pasting it.
Actual results: A paste should be seen happening very slowly.
Expected results: It happens instantly, as far as you can see.
Does this happen every time? Generally, unless screen is running in that terminal.
Other information:
Version: 2.14.x
Resolution: RESOLVED DUPLICATE