Skip to content

Commit

Permalink
Support colors in prx (abusing px) ##hexdump
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Mar 18, 2019
1 parent c8ca905 commit 71c904b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libr/core/cmd_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -5453,9 +5453,18 @@ static int cmd_print(void *data, const char *input) {
}
break;
case 'x': // "prx"
#if 0
if (l != 0) {
printraw (core, len, 2);
}
#else
{
int a = r_config_get_i (core->config, "hex.bytes");
r_config_set_i (core->config, "hex.bytes", false);
r_core_cmdf (core, "px%s", input + 1);
r_config_set_i (core->config, "hex.bytes", a);
}
#endif
break;
case 'z': // "prz"
if (l != 0) {
Expand Down

0 comments on commit 71c904b

Please sign in to comment.