On 2/28/05 Tomas Hoger <[EMAIL PROTECTED]> wrote:
Example:orphan:~ $ echo $BASH_VERSION 3.00.16(1)-release orphan:~ $ /ho $BASH_VERSIO ^ Cursor is now on $ sign, as shown by '^'. My PS1 is defined as follows: PS1="${debian_chroot:+($debian_chroot)}\[\e[32m\]\h:\[\e[0m\]\w \[\e[36m\]$\[\e[0m\] " If prompt does not use escape chars to make colors, e.g. PS1="\h:\w $ " problem does not occur.
I have this problem as well. I'd like to add that it seems not to be terminal dependent (occurs on konsole and linux VC).
Also, using a colored prompt without \[ and \] to delimit non-printing characters will fix this. But then readline doesn't wrap lines correctly (described in E3 of the FAQ http://cnswww.cns.cwru.edu/~chet/bash/FAQ).
Thanks! Dave -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

