Re: colored bash prompts seem to confuse readline

2010-02-09 Thread Chet Ramey
> Well ok its not just a plain colored prompt, what I would like to use is > this: > > txtred='\e[0;31m' # Red > bldgrn='\e[1;32m' # Green > txtrst='\e[0m'# Text Reset > PROMPT_COMMAND=' \ > if [ $? -eq 0 ]; then \ > PROMPT_PREFIX="$txtred"; \ > else

Re: colored bash prompts seem to confuse readline

2010-02-09 Thread Greg Wooledge
On Tue, Feb 09, 2010 at 08:39:49AM -0900, Britton Kerin wrote: > Well ok its not just a plain colored prompt, what I would like to use is > this: > > txtred='\e[0;31m' # Red > bldgrn='\e[1;32m' # Green > txtrst='\e[0m'# Text Reset > PROMPT_COMMAND=' \ > if [ $? -eq 0 ];

colored bash prompts seem to confuse readline

2010-02-09 Thread Britton Kerin
Well ok its not just a plain colored prompt, what I would like to use is this: txtred='\e[0;31m' # Red bldgrn='\e[1;32m' # Green txtrst='\e[0m'# Text Reset PROMPT_COMMAND=' \ if [ $? -eq 0 ]; then \ PROMPT_PREFIX="$txtred"; \ else \ PROM