Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: problem with bold prompt



<This is a problem I've been fighting with for a long time, and which I only
<recently began to grasp, when it got worse after I upgraded from 2.5.03 to
<3.0.2. :) 
<
<My prompt is defined as:
<	export PS1="^[[1m${HOSTNAME}:^[[m%d) "
<so that it appears as:
<	rom:/home/willday)
<where the "rom" is bold.

Interesting.  This is the string that I use to set all of the line to bold:

if [[ vt102 = $TERM ]]
then export PROMPT="%{^[[1m%}$HOST.BRN <%h> %{^[[0m%}"
else export PROMPT="$HOST.BRN <%h> "
fi


I have no problem on the old zsh and zsh 3.1.  So far the cursor has ended
up where it belongs.

BTW, the ^[ is a real ESC character in the file.

MB
-- 
System Administrator - Finnigan FT/MS - Madison WI. <URL:http://www.ftms.com/>
e-mail: brown@xxxxxxxx
phone: (608) 273-8262 ext: 612  fax: (608) 273-8719
Visit - <URL:http://www.cdsnet.net/vidiot/>  (Your link to Star Trek and UPN)



Messages sorted by: Reverse Date, Date, Thread, Author