Skip to content

Commit de580e8

Browse files
committed
Fix orange text coloring
It was erasing text instead of coloring it orange.
1 parent f7e7c99 commit de580e8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ansi_tags.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"boss": "\x1B[38;5;124m",
2626
"event": "\x1B[38;2;254;49;236m",
2727
"starter": "\x1B[38;5;247m",
28-
"orange": "\x1B[38;5;202"
28+
"orange": parse("<fg #d78700>")
2929
}
3030
am = AnsiMarkup(tags=user_tags, strict=True)
3131

tests/test_displayer.py

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ def all_enemies():
1616
enemies.append((name,obj))
1717
return enemies
1818

19+
def test_colors():
20+
from ansi_tags import user_tags
21+
for key, v in user_tags.items():
22+
ansiprint(f'Color {key:15s}: <{key}>1234567890abcdefghijklmnopqrstuvwxyz</{key}>')
23+
1924

2025
class TestDisplayers():
2126
# TODO: Find some other thing to test because the display_actual_damage and display_actual_block functions have been removed as of 4/13/24.

0 commit comments

Comments
 (0)