Screen.colors

If the terminal supports color, this returns the the number of colors.

interface Screen
int
colors
()

Return Value

Type: int

the number of colors supported (max 256), or 0 if monochrome

Meta