fix over.misc.hexdump colors
This commit is contained in:
parent
16770b209c
commit
26cc9c9c99
2 changed files with 5 additions and 5 deletions
|
@ -153,14 +153,14 @@ def hexdump(data, indent=0, offset=16, show_header=True, show_offsets=True, show
|
|||
elif i == len(data):
|
||||
hex_bytes.extend([" "] * (offset - local_i))
|
||||
|
||||
if use_colors: output_io.write(text.render("§B"))
|
||||
if use_colors: output_io.write(text.render("<W>"))
|
||||
output_io.write(" ".join(hex_bytes))
|
||||
if use_colors: output_io.write(text.render("§/"))
|
||||
if use_colors: output_io.write(text.render("<.>"))
|
||||
|
||||
if show_ascii:
|
||||
output_io.write(text.render(" |§B") if use_colors else " |")
|
||||
output_io.write(text.render(" | <W>") if use_colors else " |")
|
||||
output_io.write("".join(ascii_bytes))
|
||||
output_io.write(text.render("§/|") if use_colors else "|")
|
||||
output_io.write(text.render("<.>|") if use_colors else "|")
|
||||
|
||||
output_io.write("\n")
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
major = 1 # VERSION_MAJOR_IDENTIFIER
|
||||
minor = 99 # VERSION_MINOR_IDENTIFIER
|
||||
# VERSION_LAST_MM 1.99
|
||||
patch = 8 # VERSION_PATCH_IDENTIFIER
|
||||
patch = 9 # VERSION_PATCH_IDENTIFIER
|
||||
str = ".".join(str(v) for v in (major, minor, patch))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue