What ASCII sequence is used to set xterm title?
Clement Laforet
sheepkiller at cultdeadsheep.org
Mon Jun 2 03:34:38 PDT 2003
On 02 Jun 2003 14:17:12 +0400
Sergey Akifyev <asa at gascom.ru> wrote:
> Hello!
>
> I just want to make shell prompt with changing gnome-terminal window
> title (to show host on which I'm sitting now). Does someone know how?
>
> thanks in advance
hi,
for {sh,bash}
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
regards
clem
More information about the freebsd-questions
mailing list