class Tput::Emulator
- Tput::Emulator
- Reference
- Object
Overview
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.
Included Modules
- Crystallabs::Helpers::Boolean
- Crystallabs::Helpers::Logging
- JSON::Serializable
Defined in:
tput/emulator.crConstant Summary
-
Log =
::Log.for((self.name.gsub("::", '.')).underscore)
Constructors
- .new(pull : JSON::PullParser)
-
.new(tput : Tput)
Creates an instance of
Features
and performs the autodetection.
Instance Method Summary
- #inspect(io)
-
#iterm2=(iterm2 : Bool)
Is the emulator iTerm2?
-
#iterm2? : Bool
Is the emulator iTerm2?
-
#lxterm=(lxterm : Bool)
Is the emulator LXDE's lxterm?
-
#lxterm? : Bool
Is the emulator LXDE's lxterm?
-
#osxterm=(osxterm : Bool)
Is the emulator Mac OS X terminal?
-
#osxterm? : Bool
Is the emulator Mac OS X terminal?
-
#rxvt=(rxvt : Bool)
Is the emulator rxvt?
-
#rxvt? : Bool
Is the emulator rxvt?
-
#screen=(screen : Bool)
Is the emulator screen?
-
#screen? : Bool
Is the emulator screen?
-
#terminator=(terminator : Bool)
Is the emulator terminator?
-
#terminator? : Bool
Is the emulator terminator?
-
#tmux=(tmux : Bool)
Is the emulator tmux?
-
#tmux? : Bool
Is the emulator tmux?
-
#vte=(vte : Bool)
Is the emulator based on VTE?
-
#vte? : Bool
Is the emulator based on VTE?
-
#xfce=(xfce : Bool)
Is the emulator XFCE's terminal?
-
#xfce? : Bool
Is the emulator XFCE's terminal?
-
#xterm=(xterm : Bool)
Is the emulator xterm?
-
#xterm? : Bool
Is the emulator xterm?
Constructor Detail
Creates an instance of Features
and performs the autodetection.