diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-22 20:44:30 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-22 20:44:30 -0700 |
commit | 547ec78bf27e37e7a1552d99185200fef460bb38 (patch) | |
tree | 941749ccd9e491a538b1a7d44eb7527672a72f66 /cpp/termbox/output.inl | |
parent | 8e7827dfcf15ccbbade3e5d58c340dd5f72b7208 (diff) | |
download | mu-547ec78bf27e37e7a1552d99185200fef460bb38.tar.gz |
1145 - dump termbox's 256-color support
Diffstat (limited to 'cpp/termbox/output.inl')
-rw-r--r-- | cpp/termbox/output.inl | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/cpp/termbox/output.inl b/cpp/termbox/output.inl index 2018d298..45be181b 100644 --- a/cpp/termbox/output.inl +++ b/cpp/termbox/output.inl @@ -1,43 +1,3 @@ -/* Sets the termbox output mode. Termbox has three output options: - * 1. TB_OUTPUT_NORMAL => [1..8] - * This mode provides 8 different colors: - * black, red, green, yellow, blue, magenta, cyan, white - * Shortcut: TB_BLACK, TB_RED, ... - * Attributes: TB_BOLD, TB_UNDERLINE, TB_REVERSE - * - * Example usage: - * tb_change_cell(x, y, '@', TB_BLACK | TB_BOLD, TB_RED); - * - * 2. TB_OUTPUT_256 => [0..256] - * In this mode you can leverage the 256 terminal mode: - * 0x00 - 0x07: the 8 colors as in TB_OUTPUT_NORMAL - * 0x08 - 0x0f: TB_* | TB_BOLD - * 0x10 - 0xe7: 216 different colors - * 0xe8 - 0xff: 24 different shades of grey - * - * Example usage: - * tb_change_cell(x, y, '@', 184, 240); - * tb_change_cell(x, y, '@', 0xb8, 0xf0); - * - * 2. TB_OUTPUT_216 => [0..216] - * This mode supports the 3rd range of the 256 mode only. - * But you don't need to provide an offset. - * - * 3. TB_OUTPUT_GRAYSCALE => [0..23] - * This mode supports the 4th range of the 256 mode only. - * But you dont need to provide an offset. - * - * Execute build/src/demo/output to see its impact on your terminal. - * - * If 'mode' is TB_OUTPUT_CURRENT, it returns the current output mode. - */ -int tb_select_output_mode(int mode); -#define TB_OUTPUT_CURRENT 0 -#define TB_OUTPUT_NORMAL 1 -#define TB_OUTPUT_256 2 -#define TB_OUTPUT_216 3 -#define TB_OUTPUT_GRAYSCALE 4 - enum { T_ENTER_CA, T_EXIT_CA, |