mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-02 19:55:14 +00:00
Fix #9665 - Backwardly handle scr.color={bool}
This commit is contained in:
parent
a7b59ecedb
commit
b9ece3d6b0
@ -1010,7 +1010,13 @@ static int cb_color(void *user, void *data) {
|
||||
} else {
|
||||
core->print->flags &= (~R_PRINT_FLAGS_COLOR);
|
||||
}
|
||||
r_cons_singleton ()->color = (node->i_value > COLOR_MODE_16M)? COLOR_MODE_16M: node->i_value;
|
||||
if (!strcmp (node->value, "true")) {
|
||||
node->i_value = 1;
|
||||
} else if (!strcmp (node->value, "false")) {
|
||||
node->i_value = 0;
|
||||
}
|
||||
r_cons_singleton ()->color = (node->i_value > COLOR_MODE_16M)
|
||||
? COLOR_MODE_16M: node->i_value;
|
||||
r_cons_pal_update_event ();
|
||||
r_print_set_flags (core->print, core->print->flags);
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user