Fix #15767 - Temporarily disable colors in drrj

This commit is contained in:
pancake 2020-01-19 17:54:53 -05:00
parent 35b05d8697
commit fe30246d91
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* radare - LGPL - Copyright 2009-2019 - pancake */
/* radare - LGPL - Copyright 2009-2020 - pancake */
#include <r_core.h>
#include <r_debug.h>
@ -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) {