Termbox::OutputMode
Inherits Enum / Comparable / Value / Object
Output modes.
Constants
Current = 0
Makes Termbox.get_output_mode return the current output mode.
Normal = 1
This mode provides 8 different NormalColors: black,
red, green, yellow, blue, magenta, cyan, white. Colors
may be bitwise OR'd with attributes: bold, italic, underline,
reverse, blink (note that bold, underline, italic, blink
only apply to foreground).
M256 = 2
This mode provides 256 distinct colors.
- 0x00 - 0x07: the 8 colors as in
Normal - 0x08 - 0x0f: bright versions of the above
- 0x10 - 0xe7: 216 different colors
- 0xe8 - 0xff: 24 different shades of grey
M216 = 3
This mode supports the 3rd range of M256 only, but
you don't need to provide an offset.
Grayscale = 4
This mode supports the 4th range of M256 only, but
you don't need to provide an offset.
Truecolor = 5
This mode provides 24-bit color on supported terminals.
The format is 0xRRGGBB. Colors may be bitwise OR'd with
TrueColor attributes.