class

Tput::Emulator

Inherits Crystallabs::Helpers::Boolean / Crystallabs::Helpers::Logging / JSON::Serializable / Reference / Object

Class for terminal emulator program detection.

The detection is always just a best-effort because it relies on testing environment variables, and these are passed from processes to children. (I.e. if a person opens an xterm, then an lxterminal in it, xterm-specific environment variables will propagate to lxterm, confusing the detection.

Constants

Log = ::Log.for((self.name.gsub("::", '.')).underscore)

Constructors

new(pull : JSON::PullParser)
Source
new(tput : Tput)

Creates an instance of Features and performs the autodetection.

Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

inspect(io)
Source
iterm2=(iterm2 : Bool)

Is the emulator iTerm2?

Source
iterm2?

Is the emulator iTerm2?

Source
lxterm=(lxterm : Bool)

Is the emulator LXDE's lxterm?

Source
lxterm?

Is the emulator LXDE's lxterm?

Source
osxterm=(osxterm : Bool)

Is the emulator Mac OS X terminal?

Source
osxterm?

Is the emulator Mac OS X terminal?

Source
rxvt=(rxvt : Bool)

Is the emulator rxvt?

Source
rxvt?

Is the emulator rxvt?

Source
screen=(screen : Bool)

Is the emulator screen?

Source
screen?

Is the emulator screen?

Source
terminator=(terminator : Bool)

Is the emulator terminator?

Source
terminator?

Is the emulator terminator?

Source
tmux=(tmux : Bool)

Is the emulator tmux?

Source
tmux?

Is the emulator tmux?

Source
vte=(vte : Bool)

Is the emulator based on VTE?

Source
vte?

Is the emulator based on VTE?

Source
xfce=(xfce : Bool)

Is the emulator XFCE's terminal?

Source
xfce?

Is the emulator XFCE's terminal?

Source
xterm=(xterm : Bool)

Is the emulator xterm?

Source
xterm?

Is the emulator xterm?

Source