Package org.aesh.terminal
Enum DeviceAttributes.TerminalType
- All Implemented Interfaces:
Serializable,Comparable<DeviceAttributes.TerminalType>
- Enclosing class:
- DeviceAttributes
Terminal type identifiers from DA2 response.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionfromCode(int code) Find a TerminalType by its DA2 type code.intgetCode()Method.getName()Method.Returns the enum constant of this type with the specified name.static DeviceAttributes.TerminalType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
VT100
Vt100. -
VT220
Vt220. -
VT240
Vt240. -
VT330
Vt330. -
VT340
Vt340. -
VT320
Vt320. -
VT382
Vt382. -
VT420
Vt420. -
VT510
Vt510. -
VT520
Vt520. -
VT525
Vt525. -
XTERM
Xterm. -
UNKNOWN
Unknown.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode()Method.- Returns:
- the value
-
getName
Method.- Returns:
- the value
-
fromCode
Find a TerminalType by its DA2 type code. Note: Code 0 could be VT100 or xterm depending on version format.- Parameters:
code- the DA2 type code- Returns:
- the TerminalType, or UNKNOWN if not recognized
-