[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Update to "bug in \[ handling in PS1"
From: |
Rahul Sahadevan |
Subject: |
Update to "bug in \[ handling in PS1" |
Date: |
Wed, 4 Apr 2001 21:46:21 +0530 |
Hi,
The previous post wherein I said that the 2nd "\[","\]" block is handled
incorrectly was wrong.
The exact scenario under which the "\[","\]" is not handled correctly is
when the "\[" occurs in PS1 after 80 characters ( or whatever is $COLUMNS )
such as for example happens when the "\[" occurs after a \w which displays
80 characters or more
I can repeat this by setting PS1 as follows ( assuming that the
\e[00;32m is the escape sequence for changing the colour in the terminal
which in my case is rxvt/aterm )
export
PS1="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAA$\[\e[00;32m\]"
regards,
Rahul.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Update to "bug in \[ handling in PS1",
Rahul Sahadevan <=