mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-01 11:11:56 +00:00
scr.rainbow is false by default and color enhanced
This commit is contained in:
parent
7d4db495eb
commit
9f7c98b5f8
@ -145,9 +145,9 @@ R_API int r_cons_rgb_parse(const char *p, ut8 *r, ut8 *g, ut8 *b, int *is_bg) {
|
||||
}
|
||||
|
||||
R_API char *r_cons_rgb_str_off(char *outstr, ut64 off) {
|
||||
const int r = (off >> 4) & 0xff;
|
||||
const int g = (off >> 7) & 0xff;
|
||||
const int b = (off >> 10) & 0xff;
|
||||
const int r = (off >> 2) & 0xff;
|
||||
const int g = (off >> 6) & 0xff;
|
||||
const int b = (off >> 12) & 0xff;
|
||||
return r_cons_rgb_str (outstr, r, g, b, false);
|
||||
}
|
||||
|
||||
|
@ -2182,7 +2182,7 @@ R_API int r_core_config_init(RCore *core) {
|
||||
SETPREF ("asm.middle", "false", "Allow disassembling jumps in the middle of an instruction");
|
||||
SETPREF ("asm.noisy", "true", "Show comments considered noisy but possibly useful");
|
||||
SETPREF ("asm.offset", "true", "Show offsets at disassembly");
|
||||
SETCB ("scr.rainbow", "true", &cb_scrrainbow, "Shows rainbow colors depending of address");
|
||||
SETCB ("scr.rainbow", "false", &cb_scrrainbow, "Shows rainbow colors depending of address");
|
||||
SETPREF ("asm.reloff", "false", "Show relative offsets instead of absolute address in disasm");
|
||||
SETPREF ("asm.reloff.flags", "false", "Show relative offsets to flags (not only functions)");
|
||||
SETPREF ("asm.section", "false", "Show section name before offset");
|
||||
|
Loading…
x
Reference in New Issue
Block a user