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
# 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_BRAILLE = (

View File

@@ -85,12 +85,12 @@ CHARS = {
'unused': '-',
}
COLORS = {
'mdir': '33',
'btree': '34',
'data': '32',
'corrupt': '31',
'conflict': '30;41',
'unused': '1;30',
'mdir': '33', # yellow
'btree': '34', # blue
'data': '32', # green
'corrupt': '31', # red
'conflict': '30;41', # background red
'unused': '1;30', # bold gray
}
# 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
# 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_BRAILLE = (