From: Zefram <zefram@dcs.warwick.ac.uk>
To: Pierpaolo.Righini@cern.ch (Pierpaolo Righini)
Cc: zsh-workers@math.gatech.edu
Subject: Re: zsh and xterm
Date: Fri, 8 Nov 1996 13:18:23 +0000 (GMT) [thread overview]
Message-ID: <7845.199611081318@stone.dcs.warwick.ac.uk> (raw)
In-Reply-To: <Pine.A41.3.95.961108120347.31252A-100000@chorus4.cern.ch> from "Pierpaolo Righini" at Nov 8, 96 12:08:46 pm
>PS1="$(print "\033")]2;[ $_U ]%m: %/$(print "\007 \r")$PSB "
>
>and in fact this works for the title but then i have problems with the
>muliline editing (it supposes to have written the title also after the
>prompt and so the line is broken too early).
Yes, you need to indicate to zsh that part of the prompt doesn't take
up any space on the screen:
PS1="%{$(print "\033")]2;[ $_U ]%m: %/$(print "\007 \r")%}$PSB "
^^ ^^
But in this case it would be better to use the chpwd feature:
function chpwd {
print -nP "\033]2;[ $_U ]%m: %/\007"
}
chpwd gets executed every time the current directory changes. Other
things of this nature can be done using precmd, which is executed
before the prompt is displayed.
-zefram
next prev parent reply other threads:[~1996-11-08 13:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-08 11:08 Pierpaolo Righini
1996-11-08 11:42 ` Geoff Wing
1996-11-08 13:18 ` Zefram [this message]
1996-11-08 20:39 ` zsh not sourcing .zsh* John Harres
1996-11-09 15:41 ` Zefram
1996-11-10 1:51 ` John Harres
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=7845.199611081318@stone.dcs.warwick.ac.uk \
--to=zefram@dcs.warwick.ac.uk \
--cc=Pierpaolo.Righini@cern.ch \
--cc=zsh-workers@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).