diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2022-02-02 21:43:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-02 16:43:34 -0500 |
| commit | c8f4d66b009ad400f54538d6293afd5971c87776 (patch) | |
| tree | 35b628e097b755e512b91fb0706432c8c62be275 /tools/vt_fmt.py | |
| parent | cd1d08d34f32ec97396786e83783fc37b7a68858 (diff) | |
Documentation for fault.c and fault_drawer.c (#1106)
* Mostly document fault and fault_drawer
* FaultDrawer printf functions return s32
* Review Suggestions for comments
Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>
* Some further review suggestions
* Further changes from suggestions
* Fix Fault_AddClient doc comment
* Bug comment for memdump overrun, add more to Fault_PadCallback bug comment
* mb -> MB, comment about bss above externs
* Fix color codes
Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>
Diffstat (limited to 'tools/vt_fmt.py')
| -rwxr-xr-x | tools/vt_fmt.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/vt_fmt.py b/tools/vt_fmt.py index 6925734f7..e0929ff8b 100755 --- a/tools/vt_fmt.py +++ b/tools/vt_fmt.py @@ -15,8 +15,6 @@ COLORS = [ 'PURPLE', 'CYAN', 'WHITE', - 'LIGHTGRAY', - 'DARKGRAY', ] def re_match(exp, text): @@ -39,11 +37,11 @@ def vt_fmt(text): code = text[i:text.find('m', i)] i += len(code) - if re_match('^4[0-9];3[0-9]$', code): + if re_match('^4[0-7];3[0-7]$', code): chars += 'VT_COL(' + COLORS[int(code[1])] + ', ' + COLORS[int(code[4])] + ')' - elif re_match('^4[0-9]$', code): + elif re_match('^4[0-7]$', code): chars += 'VT_BGCOL(' + COLORS[int(code[1])] + ')' - elif re_match('^3[0-9]$', code): + elif re_match('^3[0-7]$', code): chars += 'VT_FGCOL(' + COLORS[int(code[1])] + ')' elif len(code) == 0: chars += 'VT_RST' |
