bug-bash
[Top][All Lists]
Advanced

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

Re: PS1 and color


From: Chet Ramey
Subject: Re: PS1 and color
Date: Tue, 21 Oct 2003 14:40:07 -0400
User-agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.4) Gecko/20030624

Prior Jérôme wrote:

sorry but i didn't find bashbug in my slackware.

I'll try to expose the problem:

in /etc/profile I change the default PS1 to put it in color. I use
\e[1;31m\u@\h \w\e[0m
or ^[[1;31m\u@\h \w\e^[[0m   (^[ is  'alt+v and ESC' )
I try to put some \n in case but the matter persist.

When i use a long command, the caracters don't go on line but cover the prompt.

root@localhost$ cp /svcgc/cqcggers/dgscvs/fgvsdgc/vcsdcwgc/vhsv /vfxvshf/fvs <---normal use

dfcdfgccalhost$ cp /cqfxgq/qxdq/qxgdxqsd/cqdfxqs/cqdgxq/xcqdxq/xqxqgxq/q
<--with color after a command which be longer than the line

Read the Bash FAQ, question E3.

Chet







reply via email to

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