bug-bash
[Top][All Lists]
Advanced

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

Re: ANSI color codes, etc?


From: Chet Ramey
Subject: Re: ANSI color codes, etc?
Date: Fri, 19 Jan 2001 10:32:55 -0500

>       Hello, maybe you guys can help me with this. I recently grabbed
> the latest bash from gnu.org in hopes that it would fix a problem i was
> having with bash-2.03.
>       What's happening is that whenever I use a PS1 variable with ANSI
> color codes or xterm control codes (<esc>]0;<term title><control-g>)
> contained in it, the line warpping suddenly ceases to work. (I'll type a
> few characters, and then bash will take me to the next line, etc; and it
> causes all kinds of annoying editing errors.)

Reading the manual page would have helped.  The PROMPTING section says, in
part:


              \[     begin a sequence of non-printing characters,
                     which could be used to embed a terminal con-
                     trol sequence into the prompt
              \]     end a sequence of non-printing characters

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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