[OT] Bold prompts in bash (SOLVED: Problem with /usr/X11R6/bin/xterm)
[OT] Bold prompts in bash (SOLVED: Problem with /usr/X11R6/bin/xterm)
- Subject: [OT] Bold prompts in bash (SOLVED: Problem with /usr/X11R6/bin/xterm)
- From: Harald Hanche-Olsen <email@hidden>
- Date: Tue, 07 Dec 2010 10:49:43 +0100 (CET)
+ "Cook, Rich" <email@hidden>:
> AHA! I unset PS1 variable and the problem is gone.
> Here is what it was set to:
>
> cook47@rcmac (cuda-install): echo $PS1
> \e[37;40;1m\[\033]0;\u@\h (\w)\007\]\u@\h (\W):
The \[...\] construct is supposed to help with that, but you're using
it in a funny way. You're supposed to put every part of the prompt
that does not contribute to the width of the prompt inside, the rest
outside. See the PROMPTING section of the bash man page.
(I don't use bash myself, but a bit of googling led me to
http://www.tek-tips.com/viewthread.cfm?qid=1560209&page=12
which explains it some.)
- Harald
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden