Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public enum Console.ColorLevel

  1. Object
  2. Enum<Console.ColorLevel>
  3. Console.ColorLevel

ImplementsComparable<Console.ColorLevel>

How many colors the terminal shows, the level Ansi converts colors down to.

Enum constants

NONENo escape codes at all.
ANSI16The 16 basic colors.
ANSI256The 256-color palette.
TRUECOLOR24-bit color.

Methods

public static Console.ColorLevel[] values()
public static Console.ColorLevel valueOf(String name)

Inherited methods

Enum constant details

NONE

NONE
No escape codes at all.

ANSI16

ANSI16
The 16 basic colors.

ANSI256

ANSI256
The 256-color palette.

TRUECOLOR

TRUECOLOR
24-bit color.

Method details

values

public static Console.ColorLevel[] values()

valueOf

public static Console.ColorLevel valueOf(String name)