To enable colors support by default, add a corresponding configuration option to the .radare2 configuration file:

    Note that enabling colors is not a boolean option. Instead, it is a number because there are different color depth levels. This is:

    • 1: 16 basic ANSI colors
    • 3: 24bit true color

    Usually, serial consoles may work with 0 or 1, while xterms may support up to 3. RCons will try to find the closest color scheme for your theme when you choose a different them with the command.

    It is possible to configure the color of almost any element of disassembly output. For *NIX terminals, r2 accepts color specification in RGB format. To change the console color palette use ec command.

    You can create your own color theme, but radare2 have its own predefined ones. Use the command to list or select them.

    In visual mode use the R key to randomize colors or choose the next theme in the list.