Enum ModeSupport
- All Implemented Interfaces:
Serializable, Comparable<ModeSupport>
Three-state result of a DEC private mode probe via DECRQM.
The three states enable smart fallbacks:
SUPPORTED— terminal responded positively to DECRQMNOT_SUPPORTED— terminal responded to DA1 (speaks escapes) but did not respond to DECRQM for this modeNO_RESPONSE— terminal did not respond to DA1 at all (dumb terminal, no probes safe)
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTerminal did not respond to DA1 at all.Terminal responded to DA1 (it speaks escape sequences) but did not respond to DECRQM for this mode.Terminal responded to DECRQM with Ps=1 (set), Ps=2 (reset but recognized), or Ps=3 (permanently set). -
Method Summary
Modifier and TypeMethodDescriptionstatic ModeSupportReturns the enum constant of this type with the specified name.static ModeSupport[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUPPORTED
Terminal responded to DECRQM with Ps=1 (set), Ps=2 (reset but recognized), or Ps=3 (permanently set). The mode is known to be supported. -
NOT_SUPPORTED
Terminal responded to DA1 (it speaks escape sequences) but did not respond to DECRQM for this mode. The mode is not supported, but cursor-position fallbacks are safe to use. -
NO_RESPONSE
Terminal did not respond to DA1 at all. This is a dumb terminal — no further probes should be attempted (they would all time out).
-
-
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
-