Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: problem with bold prompt
- X-seq: zsh-users 644
- From: Vidiot <brown@xxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx (ZSH Mailing List)
- Subject: Re: problem with bold prompt
- Date: Thu, 30 Jan 1997 22:23:57 -0600 (CST)
- In-reply-to: <199701302313.SAA12620@xxxxxxxxxxxxxxxxxx> from "Will Day" at Jan 30, 97 06:13:25 pm
<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