Re: Offset error (when using PS1 with colors and newline)

2007-07-12 Thread Andreas Schwab
dAniel hAhler <[EMAIL PROTECTED]> writes: > 1. Set PS1="\033[01;37m[ \[\033[01;34m\]\w\[\033[00m\] > \033[01;37m]\n\$\033[00m " You need to bracket _every_ nonprinting sequence of characters with \[\]. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH,

Offset error (when using PS1 with colors and newline)

2007-07-12 Thread dAniel hAhler
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='ba