[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash 4 cursor in my prompt
From: |
Greg Wooledge |
Subject: |
Re: Bash 4 cursor in my prompt |
Date: |
Wed, 8 Apr 2009 08:16:17 -0400 |
User-agent: |
Mutt/1.4.2.2i |
On Tue, Apr 07, 2009 at 11:04:58PM -0700, Special Sauce wrote:
>
> [anton@nobby-nobbs ~]$ echo $PS1
> [\[\e[28;1m\]\u@\H\[ \e[0m\]\w]$
^^^
The space after \[ is not correct. You're sending a space to the terminal
(or possibly more than one space -- since you didn't quote "$PS1" when
you expanded it, we can't tell), but you're telling bash that it isn't
moving the cursor (because you have \[ before it).
Whether that's causing your problems, I can't say, but it's definitely
not right.
Re: Bash 4 cursor in my prompt, Ian Kelling, 2009/04/25