Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Whatta fsck is this?
- X-seq: zsh-users 3466
- From: Juhapekka Tolvanen <juhtolv@xxxxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, zsh-user mailing list <zsh-users@xxxxxxxxxxxxxx>
- Subject: Re: Whatta fsck is this?
- Date: Mon, 23 Oct 2000 08:29:46 +0300
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: Overhovel of Jyväskylä
http://www.zsh.org/mla/users/2000/msg00570.html
>Juhapekka Tolvanen wrote:
>> ...
>> > >
>> > > If I do that, I experience these kind of things:
>> > >
>> > > juhtolv@heresy : /home/juhtolv
>> > > % date '+%A, %d %B %Y'
>> > > 10002 | pts/5
>> > > \e]0;%n@%m:%d : date '+%A, %d %B %Y'\a
>> > > perjantai, 25 elokuu 2000
>> > > juhtolv@heresy : /home/juhtolv
>> > > % uname -a
>> > > 10003 | pts/5
>> > > \e]0;%n@%m:%d : uname -a\a
>> >
>> > Hrm, works for me (and should have been -rn).
>> >
>> > Well, how about:
>> >
>> > print -Pn '\e]0;'
>> > print -rn "${EXECTEXT}"
>> > print -Pn '\a'
>>
>> Works fine otherwise, but if I give for example a commnd "vi", my
>> titlebar
>> looks like this as long as I run that vi:
>>
>> %n@%m:%d : vi
>
>But I guess by now you know what the problem is and how to solve it,
>right? ;-)
writetitle()
{
export TITLETEXT="${ROOTTEXT}${ROOTTITLEADD}%n@%m:%d | ${COLUMNS}x${LINES} | %l"
}
writeexectitle()
{
export EXECTEXT1="${ROOTTEXT}${ROOTTITLEADD}%n@%m:%d : "
export EXECTEXT2="$*"
}
# TERMINAL TYPES
case "$TERM" in
*xterm*|rxvt|(dt|k|E)term)
precmd()
{
writetitle
print -Pn "\e]0;${TITLETEXT}\a"
}
preexec()
{
writeexectitle $*
print -Pn '\e]0;'
print -Pn "${EXECTEXT1}"
print -rn "${EXECTEXT2}"
print -Pn '\a'
}
;;
And so on...
I'll upload that config here ASAP:
http://www.jyu.fi/~juhtolv/configs/shellrc/
P.S: I don't subscribe to these lists, but I am smart enough to read
Mailing List Archive and you can Cc: to me, i you want.
--
Juhapekka "naula" Tolvanen * * * U of Jyväskylä * * * juhtolv@xxxxxxxxx
http://www.cc.jyu.fi/~juhtolv/index.html * * "STRAIGHT BUT NOT NARROW!"
-----------------------------------------------------------------------
"Rakasta mua, tai vihaa mua. Hei, kuinka vaan. Kai sillä sitten voit
jotain uutta saavuttaa. Kai mä ansaitsen uuden tilaisuuden. Kai mä
ansaitsen. Hei, mä tiedän sen. Olen liikaa. Minä olen liikaa." Apulanta
Messages sorted by:
Reverse Date,
Date,
Thread,
Author