From fe30246d91e63a88512f17d192ea0c8c639efbc4 Mon Sep 17 00:00:00 2001 From: pancake Date: Sun, 19 Jan 2020 17:54:53 -0500 Subject: [PATCH] Fix #15767 - Temporarily disable colors in drrj --- libr/core/cmd_debug.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libr/core/cmd_debug.c b/libr/core/cmd_debug.c index cd5222e8f3..84447bd16b 100644 --- a/libr/core/cmd_debug.c +++ b/libr/core/cmd_debug.c @@ -1,4 +1,4 @@ -/* radare - LGPL - Copyright 2009-2019 - pancake */ +/* radare - LGPL - Copyright 2009-2020 - pancake */ #include #include @@ -2040,6 +2040,7 @@ R_API void r_core_debug_rr(RCore *core, RReg *reg, int mode) { } // r_debug_map_sync (core->dbg); if (mode == 'j') { + r_config_set_i (core->config, "scr.color", false); pj = pj_new (); pj_a (pj); } @@ -2128,6 +2129,9 @@ R_API void r_core_debug_rr(RCore *core, RReg *reg, int mode) { r_cons_printf ("%s\n", pj_string (pj)); pj_free (pj); } + if (use_colors) { + r_config_set_i (core->config, "scr.color", true); + } } static void show_drpi(RCore *core) {