Closed GoogleCodeExporter closed 8 years ago
You can change it with the xterm control sequence for this, like so:
echo -ne '\e]0;Title\a'
Keep in mind that the bash prompt (i.e. the PS1 variable) contains that control
sequence to set the title to the current working directory.
Original comment by andy.koppe
on 8 Jan 2011 at 8:11
As the bash prompt can reset my custom title set via "echo" - such feature
still would make sense - custom set title should always have higher priority
over everything, what happens on the shell... Something similar is also with
Linux terminals like Gnome Terminal or Konsole - they also show title, set by
bash prompt and it always changing accordingly to what user does there, but as
soon as user sets custom title - then it remains, doesn't matter what bash or
any other shell says...
Original comment by cun...@gmail.com
on 8 Jan 2011 at 9:20
Then again, if you don't want bash to change the title, just change its prompt.
See also http://www.gnu.org/software/bash/manual/bashref.html#Printing-a-Prompt
for all the things you can include in the bash prompt and hence also in the
terminal title.
As far as I'm concerned, implementing a dialog for setting the title is too
much work for too little gain.
Original comment by andy.koppe
on 12 Jan 2011 at 9:11
Original issue reported on code.google.com by
cun...@gmail.com
on 8 Jan 2011 at 6:52