You are not logged in.

#1 2007-06-12 09:53:46

koro
Member
From: Japan
Registered: 2007-04-16
Posts: 34

[SOLVED]How do I change the title string of XFCE Terminal App.

Hi,

I'd like to change the window title string of XFCE Terminal Application to "current directory path string"

What is the configuration file?

Regards.

Last edited by koro (2007-06-13 03:11:33)

Offline

#2 2007-06-12 22:39:41

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [SOLVED]How do I change the title string of XFCE Terminal App.

You have to make your shell do that. Assuming you use bash, go and google for something like "bash change window title". (I'd give you an example, but I use zsh, and don't put that info in my title bars.)

Offline

#3 2007-06-13 02:23:57

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: [SOLVED]How do I change the title string of XFCE Terminal App.

try this in ~/.bashrc, modifying for what you want:

     case $TERM in
        xterm*)
            PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
            ;;
        *)
            ;;
     esac

that will give user@host: /dir

Offline

#4 2007-06-13 03:10:57

koro
Member
From: Japan
Registered: 2007-04-16
Posts: 34

Re: [SOLVED]How do I change the title string of XFCE Terminal App.

Thank you ataraxia,

With your advice, I went to google, and I could find a topic about escape sequence of  bash.
That was almost same as your zsh script.


First, I edited my .bashrc file:

export PROMPT_COMMAND='echo -ne "\033]0; $HOSTNAME: $PWD\007" '

It was fine.

Next, I wrote your script in my.bashrc file .
It was fine, too.

Now I could change title string of my terminal application.

Thank you very much.

Best regards.

Offline

Board footer

Powered by FluxBB