[nSLUG] Screen's caption
mike.lifeguard at gmail.com
Tue Sep 22 01:45:07 ADT 2009
-----BEGIN PGP SIGNED MESSAGE-----
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).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the nSLUG