SetForegroundColor256 class final

Sets the foreground color to one of the 256 colors.

This command is compatible with both 4-bit and 8-bit color terminals, where the color is a value between 0 and 255, inclusive. Any value outside this range will be clamped to the nearest valid value.

Inheritance

Constructors

SetForegroundColor256(int color)
Creates a set foreground color command.
const

Properties

color int
The color to set the foreground to.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSequence() Sequence
Returns the ANSI escape sequence for this command.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

reset → const Command
Resets the foreground color to the default color.