mirror of
https://github.com/beetbox/beets.git
synced 2026-02-09 00:41:57 +01:00
Add missed ANSI codes for 4 bit colors
This commit is contained in:
parent
4572a7dc8a
commit
9dafaf0502
1 changed files with 16 additions and 0 deletions
|
|
@ -488,6 +488,14 @@ CODE_BY_COLOR = {
|
|||
"magenta": 35,
|
||||
"cyan": 36,
|
||||
"white": 37,
|
||||
"bright_black": 90,
|
||||
"bright_red": 91,
|
||||
"bright_green": 92,
|
||||
"bright_yellow": 93,
|
||||
"bright_blue": 94,
|
||||
"bright_magenta": 95,
|
||||
"bright_cyan": 96,
|
||||
"bright_white": 97,
|
||||
# Background colors.
|
||||
"bg_black": 40,
|
||||
"bg_red": 41,
|
||||
|
|
@ -497,6 +505,14 @@ CODE_BY_COLOR = {
|
|||
"bg_magenta": 45,
|
||||
"bg_cyan": 46,
|
||||
"bg_white": 47,
|
||||
"bg_bright_black": 100,
|
||||
"bg_bright_red": 101,
|
||||
"bg_bright_green": 102,
|
||||
"bg_bright_yellow": 103,
|
||||
"bg_bright_blue": 104,
|
||||
"bg_bright_magenta": 105,
|
||||
"bg_bright_cyan": 106,
|
||||
"bg_bright_white": 107,
|
||||
}
|
||||
RESET_COLOR = f"{COLOR_ESCAPE}[39;49;00m"
|
||||
# Precompile common ANSI-escape regex patterns
|
||||
|
|
|
|||
Loading…
Reference in a new issue