bug-bash
[Top][All Lists]
Advanced

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

Re: Offset error (when using PS1 with colors and newline)


From: Matthew Woehlke
Subject: Re: Offset error (when using PS1 with colors and newline)
Date: Tue, 02 Oct 2007 11:55:43 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0

dAniel hAhler wrote:
On 2007-07-12 Andreas Schwab wrote:

        1. Set PS1="\033[01;37m[ \[\033[01;34m\]\w\[\033[00m\]
\033[01;37m]\n\$\033[00m "
You need to bracket _every_ nonprinting sequence of characters with \[\].

I've asked you before, but you've not answered, or it got lost.

What nonprinting sequence is not escaped above?

Two occurrences of "\033[01;37m]".


--
Matthew
There's no place like ~.




reply via email to

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