From: Duncan Sargeant <dunc@ucc.gu.uwa.edu.au>
To: swen@uni-paderborn.de (Swen Thuemmler)
Cc: julio@mddjg.fc.hp.com, zsh-users@math.gatech.edu
Subject: Re: beyond zsh v2.3.1
Date: Tue, 27 Aug 1996 16:42:39 +0800 (WST) [thread overview]
Message-ID: <199608270842.QAA22275@mermaid.ucc.gu.uwa.edu.au> (raw)
In-Reply-To: <Pine.LNX.3.95.960827101359.3873A-100000@hobbiton.uni-paderborn.de> from "Swen Thuemmler" at Aug 27, 96 10:21:32 am
> On Mon, 26 Aug 1996, Julio Garcia wrote:
>
> > o I have been using a function that gets called by chpwd that looks
> > like this:
> >
> > function print_banner {
> > print -n "\e]0;$1\a"
> > }
>
> Shouldn't this be \e]2 instead? I have
> chpwd () {
> print -Pn "\e]2;${HOST}:%~ \a"
> }
> and this works.
>
I have the following at the top of my .zshrc :
if [[ $TERM = "xterm" ]] && [[ "`stty size`" != "8 57" ]] then
export PROMPT="%{^[]2;%m:%~%%^G%}%B[%?:%!]%b%# "
else
export PROMPT='%B%m%b:%~%# '
export RPROMPT='[%?:%!]'
fi
the bit of interest is the ^[]2; ... \a which puts the enclosed text in the
title bar of an xterm or screen screen.
don't know about HPUX tho ...
Duncan Sargeant, http://www.ucc.gu.uwa.edu.au/~dunc/
"You can pick your friends and you can pick your
nose, but you can't pick your friend's nose."
next prev parent reply other threads:[~1996-08-27 10:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-26 20:34 Julio Garcia
1996-08-26 22:23 ` Allan Poindexter
1996-08-27 8:21 ` Swen Thuemmler
1996-08-27 8:42 ` Duncan Sargeant [this message]
[not found] ` <swen@uni-paderborn.de>
1996-08-27 9:41 ` Bart Schaefer
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=199608270842.QAA22275@mermaid.ucc.gu.uwa.edu.au \
--to=dunc@ucc.gu.uwa.edu.au \
--cc=julio@mddjg.fc.hp.com \
--cc=swen@uni-paderborn.de \
--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).