bug-bash
[Top][All Lists]
Advanced

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

Re: Annoying prompt length guessing bug


From: Chet Ramey
Subject: Re: Annoying prompt length guessing bug
Date: Mon, 8 Jul 2002 13:03:19 -0400

> Got a little annoyance regarding $PS1 (and presumably other prompt variab=
> les)
> 
> I'm running Bash 2.05a.0(1)-release (from Debian apt), and the bug can be=
> =20
> called by setting the prompt to something containing ANSI color codes, i.=
> e.:
> 
> PS1=3D'\033[36m[\A\033[0;1m address@hidden;1m \W\033[0;36m]$\033[0m '
> 
> Then filling the command line. After a certain amount of characters, the=20
> cursor wraps to the begining of the same line, while it shouldn't go anyw=
> here=20
> for a few more characters (since there is still space on the line), and t=
> hen=20
> it should wrap down to the next line.

Look at the Bash FAQ, question E3.

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

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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