]> git.feebdaed.xyz Git - 0xmirror/radare2.git/commitdiff
Add Color_BOLD in r_cons.h
authorpancake <pancake@nopcode.org>
Thu, 4 Dec 2025 13:38:41 +0000 (14:38 +0100)
committerpancake <pancake@nopcode.org>
Thu, 4 Dec 2025 13:38:41 +0000 (14:38 +0100)
libr/include/r_cons.h

index aa5ba44ed134ef9398fa0d8606d85a387ed70695..5628c35385ae4b152e4c6645a094a79b8e05baf6 100644 (file)
@@ -600,13 +600,15 @@ typedef struct r_cons_t {
 #define Color_BLINK        "\x1b[5m"
 #define Color_INVERT       "\x1b[7m"
 #define Color_INVERT_RESET "\x1b[27m"
-     /* See 'man 4 console_codes' for details:
-      * "ESC c"        -- Reset
-      * "ESC ( B"      -- Select ASCII mapping
-      * "ESC [ 0 m"    -- Reset all display attributes
-      * "ESC [ J"      -- Erase to the end of screen
-      * "ESC [ ? 25 h" -- Make cursor visible
-      */
+#if 0
+See 'man 4 console_codes' for details:
+* "ESC c"        -- Reset
+* "ESC ( B"      -- Select ASCII mapping
+* "ESC [ 0 m"    -- Reset all display attributes
+* "ESC [ J"      -- Erase to the end of screen
+* "ESC [ ? 25 h" -- Make cursor visible
+#endif
+#define Color_BOLD "\x1b[1m"
 #define Color_RESET_TERMINAL  "\x1b" "c\x1b(B\x1b[0m\x1b[J\x1b[?25h"
 #define Color_RESET      "\x1b[0m" /* reset all */
 #define Color_RESET_NOBG "\x1b[27;22;24;25;28;39m"  /* Reset everything except background (order is important) */