Register
It is currently Fri Apr 18, 2014 7:52 pm

Setting the Title of a X-Terminal.


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Tue May 17, 2005 4:19 pm   

Joined: Tue May 17, 2005 4:06 pm
Posts: 4
Location: Penguin Island, Antarctica
Here's my part of the .bashrc that sets the title of a Terminal:

Code:

case $TERM in
      rxvt|rxvt-unicode)
         PROMPT_COMMAND='echo -ne "\033]0;Rxvt\007"'
         ;;
      xterm)
         PROMPT_COMMAND='echo -ne "\033]0;Aterm\007"'
         ;;
esac


Just wanted to know that you could change it on the fly. :)

Here's Gentoo's Default:

Code:
# Change the window title of X terminals
case $TERM in
       xterm*|rxvt|Eterm|eterm)
              PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
               ;;
       screen)
               PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
               ;;
esac


Top
 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP