Re: Problem with prompts (PS1) contaning ANSI codes
From:
Chet Ramey
Subject:
Re: Problem with prompts (PS1) contaning ANSI codes
Date:
Wed, 27 Sep 2000 10:51:42 -0400
> Machine Type: i386--freebsd3.3
>
> Bash Version: 2.03
> Patch Level: 0
> Release Status: release
>
> Description:
> If your prompt contains ANSI codes, like color-chaning codes, bash will
> think that the prompt is longer than it actually is, so it will start a
> new line before you actually reach the end of the line on the terminal.
This is the reason that the \[ and \] prompt expansions exist.
--
``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/