struct

VT::Parameter

Inherits Struct < Value < Object

Represents a numeric parameter extracted from a CSI or DCS sequence.

Constructors

new(value : Int32 = -1, sub : Bool = false)

Initializes a new Parameter with an optional value and sub flag.

Source

Instance methods

empty?

Returns true if the parameter was omitted in the escape sequence.

Source
fetch(default : Int32) : Int32

Returns the parameter's integer value, or the provided default if the parameter is empty.

Source
sub

Indicates whether this parameter is a sub-parameter, meaning it was delimited by a colon (:) rather than a semicolon (;).

Source
sub=(sub : Bool)

Indicates whether this parameter is a sub-parameter, meaning it was delimited by a colon (:) rather than a semicolon (;).

Source
value

The integer value of the parameter. A value of -1 indicates that the parameter was omitted by the sender.

Source
value=(value : Int32)

The integer value of the parameter. A value of -1 indicates that the parameter was omitted by the sender.

Source