Re: xtermtitle
OK try these! these are part of my .tcshrc on both Sun box and Debian # set prompt xterm title switch ( $TERM ) case xterm: case xterm-debian: case xterm-color: case rxvt: case dtterm: set prompt = %{\033]0;[EMAIL PROTECTED]: [EMAIL PROTECTED] breaksw default: set prompt = [EMAIL PROTECTED] %~ breaksw endsw and .zshrc which I use on most Debian box case $TERM in xterm|xterm-debian|xterm-color|rxvt|dtterm*) precmd() {print -Pn \e]0;[EMAIL PROTECTED]: %~\a} PS1=[EMAIL PROTECTED] ;; *) PS1=[EMAIL PROTECTED]: %~ esac Cheers, Chanop -- ,-. | Chanop Silpa-Anan [EMAIL PROTECTED] | | Australian National University | | got sparetime ? | | http://kenji.anu.edu.au/| | Debian GNU/BSD GPG key on request | `-' pgpQ0EhEnpbVk.pgp Description: PGP signature
Re: xtermtitle
Hello Peter, HelloPaolo Thanks for replying I have been using about the same escape sequence (except in tcsh) In my .tcshrc... switch ($TERM) case {xterm*,rxvt*}: alias periodic 'echo -n \033]0;[EMAIL PROTECTED] `date +%A\ \[%d\]\ \ %B`\007' set prompt=%n:%c03%# breaksw default: set prompt=%n:%c4%# breaksw the problem.. Telneting to debian machine seems to work fine But under other OS (still xterm terminal not dtterm or any other) the shell just change the prompt to \033]0;[EMAIL PROTECTED] Wednesday [05] April \007 I cant figure out if the problem is on the escape sequence, the xterm version, or the echo command? I have try all the combinations of /bin/echo, builtin echo, and the argg -n , -n -e Any idea?? Peter: The relative HOWTO claims tha the same espace sequence works with dtterm to.Well ..i had the same problem.(Solaris 7 sun4u) - Original Message - From: Paolo Pedaletti [EMAIL PROTECTED] To: Nikos Voutsinas [EMAIL PROTECTED] Cc: debian-user@lists.debian.org Sent: Tuesday, April 04, 2000 2:24 PM Subject: Re: xtermtitle Ciao Nikos Voutsinas, I would like (somehow) to change dynamically xterm title according to the LOGNAME and HOSTNAME env. Anyone who can help? you can start from this function in /etc/profile: if [ -n $DISPLAY ]; then cd () { builtin cd $* echo -n -e \\033]0; $TERM: $PWD \a; } echo -n -e \\033]0; $TERM: $PWD \a export -f cd fi and change it for your needs. Ciao -- Paolo Pedaletti, Como, ITALYa [EMAIL PROTECTED] -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
xtermtitle
Hello, I would like (somehow) to change dynamically xterm title according to the LOGNAME and HOSTNAME env. Anyone who can help? Thnak you in advance
Re: xtermtitle
Nikos Voutsinas [EMAIL PROTECTED] writes: Hello, I would like (somehow) to change dynamically xterm title according to the LOGNAME and HOSTNAME env. Anyone who can help? Hello I've got the following pieces of code in my .bashrc/ .bash_profile: setxtermtitle() { echo -ne \033];$*\007; } case $TERM in xterm*) PS1=\[\e]0;\u \h: \w\a\]\w: ;; *) PS1=\w ;; esac if [ $UID = 0 ]; then PS1=$PS1'$SHLVL# ' else PS1=$PS1'$SHLVL ' fi export PS1 Hth -- Peter -- -- Peter Weiss, Baldestraße 14, 80469 München, Tel. 089/ 20232434 -- ---The foolish ones taught more to me than the wise ones ever could--- --
Re: xtermtitle
Ciao Nikos Voutsinas, I would like (somehow) to change dynamically xterm title according to the LOGNAME and HOSTNAME env. Anyone who can help? you can start from this function in /etc/profile: if [ -n $DISPLAY ]; then cd () { builtin cd $* echo -n -e \\033]0; $TERM: $PWD \a; } echo -n -e \\033]0; $TERM: $PWD \a export -f cd fi and change it for your needs. Ciao -- Paolo Pedaletti, Como, ITALYa [EMAIL PROTECTED]