bug-bash
[Top][All Lists]
Advanced

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

Re: Prompt with colors code causes incorrect wrap at the end of the line


From: Chet Ramey
Subject: Re: Prompt with colors code causes incorrect wrap at the end of the line
Date: Tue, 22 Apr 2008 22:44:21 -0400
User-agent: Thunderbird 2.0.0.12 (Macintosh/20080213)

Maciej Pilichowski wrote:
[ if there was junk mail sent from my adddress I am sorry for that, accident while using bashbug program ]


Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc -I/usr/src/packages/BUILD/bash-3.2 -L/usr/src/packages/BUILD/bash-3.2/../readline-5.2 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-suse-linux-gnu uname output: Linux flatline 2.6.22.18-61-default #1 SMP 2008/02/15 03:27:01 UTC i686 i686 i386 GNU/Linux
Machine Type: i586-suse-linux-gnu

Bash Version: 3.2
Patch Level: 25
Release Status: release

Description:

Compare to prompts:
export PS1='\e[37;1;40m[\A]\e[0m$(pwd)> '
export PS1='[\A]$(pwd)> '

the former it is the same as the latter but uses color. When using colorful prompt and entering very long line the word wrap works incorrectly.

Please read the Bash FAQ, question E3.

Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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