zsh-users
 help / color / mirror / code / Atom feed
From: Juhapekka Tolvanen <juhtolv@st.jyu.fi>
To: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>,
	zsh-user mailing list <zsh-users@sunsite.auc.dk>
Subject: Re: Whatta fsck is this?
Date: Mon, 23 Oct 2000 08:29:46 +0300	[thread overview]
Message-ID: <20001023082922.A25651@verso.st.jyu.fi> (raw)


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@st.jyu.fi
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


             reply	other threads:[~2000-10-23  5:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-23  5:29 Juhapekka Tolvanen [this message]
2000-10-23 13:45 ` Juhapekka Tolvanen
2000-10-23 14:18   ` Philip Kizer
  -- strict thread matches above, loose matches on Subject: below --
2000-08-25  7:54 Sven Wischnowsky
     [not found] <200008250743.JAA11058@beta.informatik.hu-berlin.de>
2000-08-25  7:51 ` Juhapekka Tolvanen
2000-08-25  6:51 Juhapekka Tolvanen
2000-08-25  6:47 Juhapekka Tolvanen
2000-08-08 12:22 Sven Wischnowsky
2000-08-08 15:04 ` Bart Schaefer
2000-08-08  5:12 Juhapekka Tolvanen

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=20001023082922.A25651@verso.st.jyu.fi \
    --to=juhtolv@st.jyu.fi \
    --cc=wischnow@informatik.hu-berlin.de \
    --cc=zsh-users@sunsite.auc.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).