[clug] Terminal Control Sequences
grail at goldweb.com.au
Thu Jul 8 00:39:18 MDT 2010
On 04/07/2010, at 03:53 , moncojhr wrote:
> One of the things id like to know is if I can change the window title with
> control sequences, and if I can, can i enter that sequence in a text file
> and cat out the text file and have my window title change.
Apologies for the thread necro, but I found this today while answering this same question elsewhere:
Describes how to set window vs icon titles when using Xterm, with sample code for zsh, bash, tcsh and ksh.
Note that with the "preexec" function available to zsh, you can set the window title to be whatever program you're running (eg: "alex at host: ~ - vi .zshrc").
These tips work just fine for the default terminal in Ubuntu.
More information about the linux