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

2007-10-02 Thread dAniel hAhler
Matthew Woehlke wrote: 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 >>> \[\]. >> >> I've asked you before, but you've not answered, or it got lost. >> >> What nonprinting

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

2007-10-01 Thread dAniel hAhler
On 2007-07-12 Andreas Schwab wrote: > > 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 \[\]. I've asked you before, but you've not answered, or it got lost. What nonprinting seq

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