From 7abe66310c46884aa338b4a33d783493733ce229 Mon Sep 17 00:00:00 2001 From: Adam Saponara Date: Mon, 30 May 2022 21:35:18 -0400 Subject: [PATCH] update docs concerning style attributes (#24) in particular, document the hidden feature of applying `TB_BOLD` as a background attribute, which emits `TB_CAP_BLINK`. --- termbox.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/termbox.h b/termbox.h index dfc740f..6e0b99d 100644 --- a/termbox.h +++ b/termbox.h @@ -424,6 +424,11 @@ int tb_set_input_mode(int mode); * Colors may be bitwise OR'd with attributes: * TB_BOLD, TB_UNDERLINE, TB_REVERSE, TB_ITALIC * + * Some notes: Applying TB_BOLD as a bg attribute will emit an escape code + * for blinking text. TB_REVERSE can be applied as either a fg or bg + * attribute for the same effect. TB_UNDERLINE and TB_ITALIC apply as fg + * attributes only, and are ignored as bg attributes. + * * Example usage: * tb_set_cell(x, y, '@', TB_BLACK | TB_BOLD, TB_RED); * -- 2.39.5