- output-mode #!optional modeprocedure
Sets the termbox output mode. Termbox has three output options:
- normal [1..8]: This mode provides 8 different colours: black, red, green, yellow, blue, magenta, cyan, white. Attributes: bold, underline, reversed
Example usage:
(change_cell! x y #\@ (style black bold) red)
- 256 [0..256]: In this mode you can leverage the 256 terminal mode:
- 0x00 - 0x07: the 8 colours as in normal
- 0x08 - 0x0f: (style red bold)
- 0x10 - 0xe7: 216 different colours
- 0xe8 - 0xff: 24 different shades of grey
Example usage:
(change_cell! x y #\@ (style 184) (style 240)) (change_cell! x y #\@ (style #xb8) (style #xf0))
- 216 [0..216]: This mode supports the 3rd range of the 256 mode only. But you dont need to provide an offset.
- grayscale [0..23]: This mode supports the 4th range of the 256 mode only. But you dont need to provide an offset.
Returns the current mode if node mode is given.