Randall R Schulz wrote:
> Martin,
> Most likely there's a problem with your PS1 string. It appears you're 
> altering the color within the prompt, and any portions of the prompt 
> string that do not yield visible characters must be surrounded with \[ 
> (two characters, escape as necessary) and \]. Otherwise the cursor 
> positioning code used when you, say back up the cursor, erase parts of 
> the line or wrap at the right margin, have the wrong value for the 
> cursor's position following the prompt and subsequently send incorrect 
> positioning commands.
> 
> 
> Randall Schulz

Here is the part of .bashrc that changes the cursor - I have not much
knowledge about whats going on here...

# Define a few Color's
BLACK='\e[0;30m'
BLUE='\e[0;34m'
GREEN='\e[0;32m'
CYAN='\e[0;36m'
RED='\e[0;31m'
PURPLE='\e[0;35m'
BROWN='\e[0;33m'
LIGHTGRAY='\e[0;37m'
DARKGRAY='\e[1;30m'
LIGHTBLUE='\e[1;34m'
LIGHTGREEN='\e[1;32m'
LIGHTCYAN='\e[1;36m'
LIGHTRED='\e[1;31m'
LIGHTPURPLE='\e[1;35m'
YELLOW='\e[1;33m'
WHITE='\e[1;37m'
NC='\e[0m'              # No Color


PS1="$CYAN$(ppwd \l)[EMAIL PROTECTED]:\W$NC >"

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to