Skip to main content

Module fmt

Module fmt 

Source

Modulesยง

dot_colors ๐Ÿ”’

Constantsยง

BLUE ๐Ÿ”’
BOLD ๐Ÿ”’
CYAN ๐Ÿ”’
DIM ๐Ÿ”’
GREEN ๐Ÿ”’
RED ๐Ÿ”’
RESET ๐Ÿ”’
WHITE ๐Ÿ”’
YELLOW ๐Ÿ”’

Functionsยง

abbreviate_hex ๐Ÿ”’
Abbreviates hex strings with repeated leading byte pairs. E.g. "PUSH32 0xffffffffff...ffe0" โ†’ "PUSH32 0xff..ffe0".
colorize ๐Ÿ”’
Writes ANSI-colored output by tokenizing plain with the asm tokenizer.
decimal_width ๐Ÿ”’
opcode_color ๐Ÿ”’
Returns the ANSI color for an opcode name based on its byte-value category.
opcode_color_by_byte ๐Ÿ”’