[nSLUG] Screen's caption

Mike.lifeguard mike.lifeguard at gmail.com
Tue Sep 22 01:45:07 ADT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daniel Morrison wrote:
> What does this part do?
> 
>  \[\e]0;\u@\H: \w\a\]

Everything between the \[ and \] is unprintable (so it doesn't appear in
the prompt). Instead, the \e]0; sends it to the titlebar of your
terminal emulator's window (if there is one).

So, it is basically the same as the actual prompt, shown in another
place. The \H is the full hostname, while \h is only the first part
(there is more room to display in the titlebar than in the prompt).

- -Mike

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkq4VlAACgkQst0AR/DaKHuq/gCeKQJvIviVZN9AQXBQQswVqTkM
ikMAn0SBi1CYzajP+1P2M30Med+7eq+x
=IRxV
-----END PGP SIGNATURE-----



More information about the nSLUG mailing list