bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about Xterm title


From: Serge Koksharov
Subject: Re: Question about Xterm title
Date: Fri, 18 Feb 2005 06:32:52 +0300
User-agent: messenger dove of peace

On Thu, Feb 17, 2005 at 04:12:49PM +0100, Al Elgert wrote:
> Hello,
> 
> you can change the title with this command (if the term supports it):
> 
>       echo -en "\033]0;--- $HOSTNAME $TERM $$ ---\007"
>                        ^^^^^^^^^^^^^^^^^^^^^^^^^^

May be I'm don't explained clearly enough. I need dynamic title, not static.
For example, I type:
$some_ncurses_appname -arg1 -arg2 <CR>
And after I pressed enter key I want xterm title changed to:
"-=xterm=- myhost.mydomain: some_ncurses_appname -arg1 -arg2".

zsh uses preexec() builtin function to accomplish this - a function which is
just before a command is executed, and I haven't found any way to do this in
bash. Look at http://www.tldp.org/HOWTO/Xterm-Title-6.html if I'm again not
described my problem clearly enough.

Thank you, and have a nice day.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]