Package org.aesh.terminal
Enum DeviceAttributes.Feature
- All Implemented Interfaces:
Serializable,Comparable<DeviceAttributes.Feature>,java.lang.constant.Constable
- Enclosing class:
DeviceAttributes
Feature flags that can be reported in DA1 response.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionANSI color (Ps=22)ANSI text locator / mouse (Ps=29)132-column mode (Ps=1)Soft character set / DRCS (Ps=7)Horizontal scrolling (Ps=21)Locator port / mouse (Ps=16) - DEC locatorNational replacement character sets (Ps=9)Printer port (Ps=2)Rectangular editing (Ps=28)ReGIS graphics (Ps=3)Selective erase (Ps=6)Sixel graphics (Ps=4)Terminal state interrogation (Ps=17)Technical character set (Ps=15)User-defined keys (Ps=8)User windows (Ps=18) -
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceAttributes.FeaturefromCode(int code) Find a Feature by its DA1 parameter code.intgetCode()static DeviceAttributes.FeatureReturns the enum constant of this type with the specified name.static DeviceAttributes.Feature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COLUMNS_132
132-column mode (Ps=1) -
PRINTER
Printer port (Ps=2) -
REGIS_GRAPHICS
ReGIS graphics (Ps=3) -
SIXEL
Sixel graphics (Ps=4) -
SELECTIVE_ERASE
Selective erase (Ps=6) -
DRCS
Soft character set / DRCS (Ps=7) -
USER_DEFINED_KEYS
User-defined keys (Ps=8) -
NATIONAL_CHARSETS
National replacement character sets (Ps=9) -
TECHNICAL_CHARSETS
Technical character set (Ps=15) -
LOCATOR
Locator port / mouse (Ps=16) - DEC locator -
STATE_INTERROGATION
Terminal state interrogation (Ps=17) -
USER_WINDOWS
User windows (Ps=18) -
HORIZONTAL_SCROLLING
Horizontal scrolling (Ps=21) -
ANSI_COLOR
ANSI color (Ps=22) -
RECTANGULAR_EDITING
Rectangular editing (Ps=28) -
ANSI_TEXT_LOCATOR
ANSI text locator / mouse (Ps=29)
-
-
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() -
fromCode
Find a Feature by its DA1 parameter code.- Parameters:
code- the DA1 parameter code- Returns:
- the Feature, or null if not recognized
-