Package org.aesh.terminal.tty
Class TerminalDevice
java.lang.Object
org.aesh.terminal.BaseDevice
org.aesh.terminal.tty.TerminalDevice
- All Implemented Interfaces:
Device
Contains info regarding the current device connected to readline
- Author:
- Stale W. Pedersen
-
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<Capability> capabilities) Add all boolean capabilities from a set.voidaddAllCapabilityInts(Map<Capability, Integer> integers) Add all integer capabilities from a map.voidaddAllCapabilityStrings(Map<Capability, String> strings) Add all string capabilities from a map.voidaddCapability(Capability capability) Add a boolean capability.voidaddCapability(Capability capability, Integer integer) Add an integer capability.voidaddCapability(Capability capability, String s) Add a string capability.booleanbooleanMethods inherited from class org.aesh.terminal.BaseDevice
getBooleanCapability, getNumericCapability, getStringCapability, getStringCapabilityAsInts, puts, puts, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aesh.terminal.Device
getColorDepth, getImageProtocol, supportsImages
-
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
Add all integer capabilities from a map.- Parameters:
integers- the map of capabilities to integers
-
addCapability
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
Add all string capabilities from a map.- Parameters:
strings- the map of capabilities to strings
-
supportsOscQueries
public boolean supportsOscQueries() -
isMultiplexer
public boolean isMultiplexer()
-