zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: <jarausch@igpm.rwth-aachen.de>, <zsh-workers@sunsite.auc.dk>
Subject: RE: xterm title setting
Date: Mon, 18 Dec 2000 13:17:29 +0300	[thread overview]
Message-ID: <000f01c068db$b9ed7f50$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <200012181004.LAA99550@numa1.igpm.rwth-aachen.de>

this works for me with (no on Linux but in xterm):

precmd () {
        print -nP -u2 "\033]0;%n@%m:%~\a"
}

I used to used chpwd as well, but it has some nasty drawbacks. The main
problem is, that title won't be restored if some program changes it. "Some
program" may be zsh as well :-)

-andrej

> -----Original Message-----
> From: jarausch@igpm.rwth-aachen.de [mailto:jarausch@igpm.rwth-aachen.de]
> Sent: Monday, December 18, 2000 1:04 PM
> To: zsh-workers@sunsite.auc.dk
> Subject: xterm title setting
>
>
> Sorry, this is a bit offtopic.
>
> I am looking for a method to set the title of
> and xterm (and its icon) with the chpwd function.
> This works just fine on my IRIX box, but at home
> on my Linux box it won't work as described in the
> intro.ms document. I've searched the docs for the
> xterm control sequences (it looks like those mentionend
> in intro.ms) but it just doesn't work.
> Maybe the print -Pn doesn't get where it's assumed to.
>
> One more question.
> Does anybody know how to make the Backspace key
> work like ^H on a Linux system console (it works
> within an xterm).
>
> Thanks for any hints,
>
> Helmut Jarausch
> Lehrstuhl fuer Numerische Mathematik
> Institute of Technology, RWTH Aachen
> D 52056 Aachen, Germany
>
>


      parent reply	other threads:[~2000-12-18 10:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-18 10:04 jarausch
2000-12-18 10:16 ` Ollivier Robert
2000-12-18 10:17 ` Andrej Borsenkow [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='000f01c068db$b9ed7f50$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=jarausch@igpm.rwth-aachen.de \
    --cc=zsh-workers@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).