Bug 113195
Summary: | First line displayed incorrectly if prompt changes background color | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Kasper Dupont <bugzilla> | ||||
Component: | vte | Assignee: | Behdad Esfahbod <behdad> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 5 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Fedora 8 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2008-03-10 04:54:45 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Kasper Dupont
2004-01-09 16:28:33 UTC
Created attachment 96860 [details]
Screenshot of incorrectly displayed gnome-terminal
Fedora Core 1 is now maintained by the Fedora Legacy project for security updates only. If this problem is a security issue, please reopen and reassign to the Fedora Legacy product. If it is not a security issue and hasn't been resolved in the current FC3 updates or in the FC4 test release, reopen and change the version to match. This bug also exist in FC3. And just in case it isn't obvious, there is a minor typo in the command to reproduce the symptom, a ' character is missing. Using this command will reproduce the problem: PS1='\[\033[46m\][\u@\h:\w]\[\033[0m\] ' gnome-terminal Hmm, interesting. Slightly more robust reproduction instructions: PS1='\[\033[46m\][\u@\h:\w]\[\033[0m\] ' gnome-terminal --disable-factory -e "/bin/sh" This is likely a vte bug (vte is the rendering widget used by gnome-terminal). I'm going to reassign it to the vte component. Fedora Core 3 is now maintained by the Fedora Legacy project for security updates only. If this problem is a security issue, please reopen and reassign to the Fedora Legacy product. If it is not a security issue and hasn't been resolved in the current FC5 updates or in the FC6 test release, reopen and change the version to match. This problem also exist in FC4. I don't yet have any FC5 installation to test it there. Happens in FC5 still. Not sure if it's vte or bash. I don't see how this could be a bash bug. It works fine with xterm. And I believe bash does output the correct character sequence. I think the possible places to search for this bug is in gnome-terminal and the libraries it uses. It could theoretically be an X server bug. But since I'm able to reproduce this with an entirely different X server as well, I don't think that is a likely explanation. How do you do the same with xterm? My xterm doesn't seem to pass PS1 to the bash inside. xterm certainly should pass the full environment to the shell inside. But maybe the shell inside will reset the PS1 environment variable, this depends on configuration files. The following two commands should tell you what environment is passed (I'll try to come up with a better way to reproduce the problem). PS1='\[\033[46m\][\u@\h:\w]\[\033[0m\] ' strace -v -f -e execve xterm -e /bin/sh PS1='\[\033[46m\][\u@\h:\w]\[\033[0m\] ' strace -v -f -e execve gnome-terminal -e /bin/sh Does this show the difference in your case? printf '\033[46m[\u@\h:\w]\033[0m ' >/tmp/PS1 gnome-terminal -e 'cat /tmp/PS1 /dev/tty' xterm -e 'cat /tmp/PS1 /dev/tty' (In reply to comment #11) > Does this show the difference in your case? > printf '\033[46m[\u@\h:\w]\033[0m ' >/tmp/PS1 > gnome-terminal -e 'cat /tmp/PS1 /dev/tty' > xterm -e 'cat /tmp/PS1 /dev/tty' Yep, that does the trick. Fedora Core 5 is not maintained anymore. Can you reproduce this bug in Fedora 8? I haven't been able to reproduce it in Fedora 8. (Have only tried two times). |