scr.rainbow is false by default and color enhanced

This commit is contained in:
pancake 2017-08-31 01:30:37 +02:00
parent 7d4db495eb
commit 9f7c98b5f8
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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");