Sets the terminal title.
This can be used as a helper for various CLI-based applications (e.g., mutt
)
to set a context-aware terminal title.
go get -u github.com/hazaelsan/termtitle
$GOBIN/termtile -title_auto "my fancy title"
There are several formatters for setting the terminal title.
Pseudo-formatter, if a screen
/tmux
terminal is detected it returns the
screen
formatter, otherwise it returns a xterm
formatter.
The bitbucket, doesn't output anything.
A formatter that doesn't output any control sequences.
Uses screen
/tmux
compatible control sequences.
Uses XTerm
compatible control sequences.