termtitle

module
v0.0.0-...-0dc5403 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2018 License: GPL-3.0

README

termtitle

GoDoc

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.

Installation

go get -u github.com/hazaelsan/termtitle

Usage

$GOBIN/termtile -title_auto "my fancy title"

Formatters

There are several formatters for setting the terminal title.

auto

Pseudo-formatter, if a screen/tmux terminal is detected it returns the screen formatter, otherwise it returns a xterm formatter.

null

The bitbucket, doesn't output anything.

raw

A formatter that doesn't output any control sequences.

screen

Uses screen/tmux compatible control sequences.

xterm

Uses XTerm compatible control sequences.

Directories

Path Synopsis
Package formatter defines a terminal title formatter.
Package formatter defines a terminal title formatter.
auto
Package auto is a pseudo-Formatter returning a suitable Formatter based on the underlying terminal.
Package auto is a pseudo-Formatter returning a suitable Formatter based on the underlying terminal.
null
Package null defines a null formatter, it does not output anything.
Package null defines a null formatter, it does not output anything.
raw
Package raw defines a plain formatter that does not output any control sequences.
Package raw defines a plain formatter that does not output any control sequences.
screen
Package screen defines a Formatter for GNU Screen, compatible with tmux.
Package screen defines a Formatter for GNU Screen, compatible with tmux.
xterm
Package xterm defines a Formatter for XTerm variants.
Package xterm defines a Formatter for XTerm variants.
terminal_title is a utility that sets the terminal title.
terminal_title is a utility that sets the terminal title.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL