From: John Beppu <beppu@ax9.org>
To: Juhapekka Tolvanen <juhtolv@st.jyu.fi>
Cc: zsh-users@sunsite.dk, Sven Guckes <guckes@math.fu-berlin.de>,
jw@cs.fau.de, ric@giccs.georgetown.edu
Subject: Re: Titlebar-handling with zsh and screen
Date: Fri, 8 Mar 2002 23:23:34 -0800 [thread overview]
Message-ID: <20020308232334.B13971@Ax9.org> (raw)
In-Reply-To: <20020309051250.A30021@verso.st.jyu.fi>
[ date ] 2002/03/09 | Saturday | 05:12 AM
[ author ] Juhapekka Tolvanen <juhtolv@st.jyu.fi>
> So, please download my shellconfigs and check out files dot.zshrc and
> dot.screenrc and try to find bugs or other errors. They seem to work for
> me, but I am not very sure, why on earth they work.
To make it work with:
Terminal.app (Mac OS X)
Terminal.app (NeXTstep)
Stuart.app (NeXTstep)
add the following to the case statement in your dot.zshrc
- - - - 8< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
vt100)
if (( $+TERM_PROGRAM && $+TERM_PROGRAM_VERSION )) || # Terminal.app
(( $+STUART )) # Stuart.app
then
precmd()
{
writetitle
print -Pn "\e]0;${TITLETEXT}\a"
}
preexec()
{
writeexectitle $1
print -Pn '\e]0;'"${EXECTEXT1}"
print -rn "${EXECTEXT2}"
print -Pn '\a'
}
fi
;;
- - - - 8< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Mac OS X and NeXTstep users will also need to add the following line
to dot.screenrc.
termcapinfo vt100 'hs:ts=\E]0;:fs007:ds=\E]0;'
This termcapinfo line is probably wrong for everyone else, though.
PS: The NeXTstep stuff is hypothetical, because I don't have
screen installed on my NeXT slab, and it only has an
old zsh from 1994.
[[ $VERSION = 2.5.02 ]] # to be exact
It doesn't know about %y (for putting the tty info in the
title bar) and the preexec() function means nothing to it.
(I tried to compile zsh-4.0.4 a while ago, but it didn't get
very far using gcc 2.5.8.... However, it was a pleasant
surprise when vim-6 compiled and worked.)
--
package wuv'apqvjgt;($_=join('',(*PgtnHcemgt))) # print map "beppu\@$_\n", qw(
=~ s/([HaP])(?!e)/ \U>$1/g;s/^.|:| (?=A)|>//g;y # cpan.org lbox.org binq.org
/c-z/a-u/;print"J$_\n";#$^%$^X@.^ <!-- japh --> # oss.lineo.com codepoet.org);
prev parent reply other threads:[~2002-03-09 7:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-09 3:12 Juhapekka Tolvanen
2002-03-09 5:12 ` Vincent Lefevre
2002-03-09 5:18 ` Clint Adams
2002-03-09 23:55 ` Vincent Lefevre
2002-03-10 1:38 ` Vincent Lefevre
2002-03-09 7:23 ` John Beppu [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=20020308232334.B13971@Ax9.org \
--to=beppu@ax9.org \
--cc=guckes@math.fu-berlin.de \
--cc=juhtolv@st.jyu.fi \
--cc=jw@cs.fau.de \
--cc=ric@giccs.georgetown.edu \
--cc=zsh-users@sunsite.dk \
/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).