AnsiColor

Enumeration of ANSI color codes.

Entries

Link copied to clipboard

Reset (0).

Link copied to clipboard

Black (30).

Link copied to clipboard

Red (31).

Link copied to clipboard

Green (32).

Link copied to clipboard

Yellow (33).

Link copied to clipboard

Blue (34).

Link copied to clipboard

Magenta (35).

Link copied to clipboard

Cyan (36).

Link copied to clipboard

White (37).

Link copied to clipboard

Bright black (90).

Link copied to clipboard

Bright red (91).

Link copied to clipboard

Bright green (92).

Link copied to clipboard

Bright yellow (93).

Link copied to clipboard

Bright blue (94).

Link copied to clipboard

Bright magenta (95).

Link copied to clipboard

Bright cyan (96).

Link copied to clipboard

Bright white (97).

Properties

Link copied to clipboard
val code: Int
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Convert to background color escape code.

Link copied to clipboard

Convert to font color escape code.

Link copied to clipboard
fun valueOf(value: String): AnsiColor

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.