Halim Issa wrote: > On bash 3.2 patchlevel 048 (and earlier) there appears to be problems in vi > mode and prompts containing escape characters (such as to get bold text). > > To reproduce: > Enter vi editing mode set -o vi > > Set the following prompt: > export PS1="[\!] \[\e[1m\]\u\[\e[...@\h:\w>" > > Type "one two three four five six seven eight" press ESCape and 7 B to go > seven words back. This takes me right in the middle of the prompt while > displaying (args:7) on the prompt. Once it removes the (args:7) info, ie when > I press the "B", the cursor location is messed up and I end up in the middle > of the prompt, instead of at the word "two" where I should be.
I can't reproduce this with xterm, aterm, or Terminal on Mac OS X with bash-3.2.48. I have made display fixes for possibly-related problems displaying numeric arguments; maybe those will fix your problem. They will come out with bash-4.0. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/