Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: xterm title setting



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@xxxxxxxxxxxxxxxxxxx [mailto:jarausch@xxxxxxxxxxxxxxxxxxx]
> Sent: Monday, December 18, 2000 1:04 PM
> To: zsh-workers@xxxxxxxxxxxxxx
> 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
>
>



Messages sorted by: Reverse Date, Date, Thread, Author