zsh-users
 help / color / mirror / code / Atom feed
From: Vidiot <brown@ftms.COM>
To: zsh-users@math.gatech.edu (ZSH Mailing List)
Subject: Re: problem with bold prompt
Date: Thu, 30 Jan 1997 22:23:57 -0600 (CST)	[thread overview]
Message-ID: <199701310423.WAA05556@ftms.ftms.com> (raw)
In-Reply-To: <199701302313.SAA12620@rom.oit.gatech.edu> 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@ftms.com
phone: (608) 273-8262 ext: 612  fax: (608) 273-8719
Visit - <URL:http://www.cdsnet.net/vidiot/>  (Your link to Star Trek and UPN)


      parent reply	other threads:[~1997-01-31  4:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-30 23:13 Will Day
1997-01-31  0:08 ` Zefram
1997-01-31  0:14 ` Aaron Schrab
1997-01-31  4:23 ` Vidiot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199701310423.WAA05556@ftms.ftms.com \
    --to=brown@ftms.com \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).