bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash gets confused by ANSI sequences


From: Elmar Stellnberger
Subject: bash gets confused by ANSI sequences
Date: Sat, 27 Jan 2007 16:58:41 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20060911)

This bug has already been reported for konsole under bugs.kde.org,
bug#Bug 48109 <http://bugs.kde.org/show_bug.cgi?id=48109>
In a fact it is an error of bash, because I get the same results in text
mode under vt01.
Additionally Bug 138411 <http://bugs.kde.org/show_bug.cgi?id=138411>:
cursor postioning error after output without trailing newline seems to
be closely related.
Please have a look!

The use of ANSI sequences in konsole seems to confuse konsole's idea of
where the current write position is. When I run a bash shell inside
konsole and set the prompt string to contain ANSI escape sequences, then
when typing long lines the write position wraps back to the beginning of
the current line before the right margin has been reached. The same
behaviour can be observed with xterm, so the problem obviously has been
inherited from there.


/------- Additional Comment #1
<https://bugs.kde.org/show_bug.cgi?id=48109#c1> From Stephan Binner
<mailto:binner@kde.org> 2002-09-21 14:48 ------- /
What ANSI sequences? And you exclude an error of you when the two best
terminal emulators both show this behaviour? :-)


/------- Additional Comment #2
<https://bugs.kde.org/show_bug.cgi?id=48109#c2> From Thomas Koeller
<mailto:thomas@koeller.dyndns.org> 2002-09-21 14:56 ------- /
Steps to reproduce:
 
1. Start a bash shell inside konsole.
2. Enter PS1="\e]2;\w\a\e[34;1m\! \s-\v \$\e[0m "
3. Type a long line (contents do not matter).


/------- Additional Comment #3
<https://bugs.kde.org/show_bug.cgi?id=48109#c3> From Stephan Binner
<mailto:binner@kde.org> 2002-11-02 21:03 ------- /
Likely a bash problem.


/------- Additional Comment #4
<https://bugs.kde.org/show_bug.cgi?id=48109#c4> From estellnb@yahoo.de
<mailto:estellnb@yahoo.de> 2007-01-27 17:51 ------- /
Even simple things like coloring the prompt will confuse konsole.
This is just too bad!
export PS1="\e[0;33m\u:\w> \e[0m"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]