scripts: Tried to better document ansi color codes

This commit is contained in:
Christopher Haster
2025-05-25 01:08:15 -05:00
parent 6d0fda4d81
commit bce8f45a64
3 changed files with 22 additions and 8 deletions

View File

@@ -32,7 +32,14 @@ except ModuleNotFoundError:
# we don't actually need that many chars/colors thanks to the # we don't actually need that many chars/colors thanks to the
# 4-colorability of all 2d maps # 4-colorability of all 2d maps
COLORS = ['34', '31', '32', '35', '33', '36'] COLORS = [
'34', # blue
'31', # red
'32', # green
'35', # purple
'33', # yellow
'36', # cyan
]
CHARS_DOTS = " .':" CHARS_DOTS = " .':"
CHARS_BRAILLE = ( CHARS_BRAILLE = (

View File

@@ -85,12 +85,12 @@ CHARS = {
'unused': '-', 'unused': '-',
} }
COLORS = { COLORS = {
'mdir': '33', 'mdir': '33', # yellow
'btree': '34', 'btree': '34', # blue
'data': '32', 'data': '32', # green
'corrupt': '31', 'corrupt': '31', # red
'conflict': '30;41', 'conflict': '30;41', # background red
'unused': '1;30', 'unused': '1;30', # bold gray
} }
# give more interesting objects a higher priority # give more interesting objects a higher priority

View File

@@ -28,7 +28,14 @@ except ModuleNotFoundError:
# we don't actually need that many chars/colors thanks to the # we don't actually need that many chars/colors thanks to the
# 4-colorability of all 2d maps # 4-colorability of all 2d maps
COLORS = ['34', '31', '32', '35', '33', '36'] COLORS = [
'34', # blue
'31', # red
'32', # green
'35', # purple
'33', # yellow
'36', # cyan
]
CHARS_DOTS = " .':" CHARS_DOTS = " .':"
CHARS_BRAILLE = ( CHARS_BRAILLE = (