Class TerminalDevice
java.lang.Object
org.aesh.terminal.BaseDevice
org.aesh.terminal.tty.TerminalDevice
- All Implemented Interfaces:
org.aesh.terminal.Device
public class TerminalDevice
extends org.aesh.terminal.BaseDevice
Contains info regarding the current device connected to readline
- Author:
- Stale W. Pedersen
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aesh.terminal.Device
org.aesh.terminal.Device.OscCode, org.aesh.terminal.Device.TerminalType -
Field Summary
Fields inherited from class org.aesh.terminal.BaseDevice
bools, ints, strings, type -
Constructor Summary
ConstructorsConstructorDescriptionTerminalDevice(String type) Create a new terminal device with the specified type. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllCapabilityBooleans(Set<org.aesh.terminal.tty.Capability> capabilities) Add all boolean capabilities from a set.voidaddAllCapabilityInts(Map<org.aesh.terminal.tty.Capability, Integer> integers) Add all integer capabilities from a map.voidaddAllCapabilityStrings(Map<org.aesh.terminal.tty.Capability, String> strings) Add all string capabilities from a map.voidaddCapability(org.aesh.terminal.tty.Capability capability) Add a boolean capability.voidaddCapability(org.aesh.terminal.tty.Capability capability, Integer integer) Add an integer capability.voidaddCapability(org.aesh.terminal.tty.Capability capability, String s) Add a string capability.Methods inherited from class org.aesh.terminal.BaseDevice
getBooleanCapability, getNumericCapability, getStringCapability, getStringCapabilityAsInts, puts, puts, typeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aesh.terminal.Device
detectTerminalType, getColorDepth, getImageProtocol, isJetBrainsTerminal, isMultiplexer, isTmuxPassthroughEnabled, supportsGraphemeClusterMode, supportsHyperlinks, supportsImages, supportsOscCode, supportsOscQueries, supportsShellIntegration, supportsSynchronizedOutput, supportsThemeQuery
-
Constructor Details
-
TerminalDevice
Create a new terminal device with the specified type.- Parameters:
type- the terminal type
-
-
Method Details
-
addCapability
Add an integer capability.- Parameters:
capability- the capability to addinteger- the integer value
-
addAllCapabilityInts
-
addCapability
public void addCapability(org.aesh.terminal.tty.Capability capability) Add a boolean capability.- Parameters:
capability- the capability to add
-
addAllCapabilityBooleans
Add all boolean capabilities from a set.- Parameters:
capabilities- the set of capabilities
-
addCapability
Add a string capability.- Parameters:
capability- the capability to adds- the string value
-
addAllCapabilityStrings
-