zsh-workers
 help / color / mirror / code / Atom feed
* xterm title setting
@ 2000-12-18 10:04 jarausch
  2000-12-18 10:16 ` Ollivier Robert
  2000-12-18 10:17 ` Andrej Borsenkow
  0 siblings, 2 replies; 3+ messages in thread
From: jarausch @ 2000-12-18 10:04 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xterm title setting
  2000-12-18 10:04 xterm title setting jarausch
@ 2000-12-18 10:16 ` Ollivier Robert
  2000-12-18 10:17 ` Andrej Borsenkow
  1 sibling, 0 replies; 3+ messages in thread
From: Ollivier Robert @ 2000-12-18 10:16 UTC (permalink / raw)
  To: zsh-workers

According to jarausch@igpm.rwth-aachen.de:
> Maybe the print -Pn doesn't get where it's assumed to.

I use this:

-=-=-
if [ x$TERM != x ]; then
    if [ $TERM = xterm  -o $TERM = xterm-color ]; then
        chpwd() {
            print -n -P "\033]2;%n@%M:%/ - tty%l\007\033]1;tty%l@%m\007"
        }
    fi
    PS1="%h [%T] %B%n%b@%m:%B%2.%(#.#.>)%b "
    export PS1
-=-=-
-- 
Ollivier ROBERT -=- Eurocontrol EEC/ITM -=- roberto@eurocontrol.fr
The Postman hits! The Postman hits! You have new mail.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: xterm title setting
  2000-12-18 10:04 xterm title setting jarausch
  2000-12-18 10:16 ` Ollivier Robert
@ 2000-12-18 10:17 ` Andrej Borsenkow
  1 sibling, 0 replies; 3+ messages in thread
From: Andrej Borsenkow @ 2000-12-18 10:17 UTC (permalink / raw)
  To: jarausch, zsh-workers

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
>
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-12-18 10:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-18 10:04 xterm title setting jarausch
2000-12-18 10:16 ` Ollivier Robert
2000-12-18 10:17 ` Andrej Borsenkow

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).