safely set title of terminal window
safetitle sets the title of the current terminal window,
unless the current terminal type is blacklisted. By default, the single
blacklisted terminal is NetBSD's wscons(4).
If run within screen(1),
safetitle will correctly identify the terminal in
which screen(1) is run. If there are multiple terminals
attached to the same screen(1) session,
safetitle will ensure that none of them are
The reason why
If you pass the
safetitle is superstitious
about the type of the terminal is that some terminals do not support the
control sequences that modify the title. Specifically, NetBSD's
wscons(4) is rendered (nearly) unusable when it is sent
such control sequences.
safetitle provides a simple
interface to setting the title in terminals that support it, while leaving
terminals that do not support it alone.
safetitle will warn you if the current terminal type
safetitle uses as identification the secondary device
attributes as reported by the terminal. This may or may not be reliable.