color_bucket_logger.term_colors module¶
-
color_bucket_logger.term_colors.DEFAULT_COLOR= 7¶ The default color (white)
-
color_bucket_logger.term_colors.DEFAULT_COLOR_IDX= 257¶ The index for the default ‘default’ color
-
color_bucket_logger.term_colors.NAMED_COLOR_IDXS= {'BLACK': 0, 'BLUE': 4, 'CYAN': 6, 'GREEN': 2, 'MAGENTA': 5, 'RED': 1, 'WHITE': 7, 'YELLOW': 3}¶ Some named colors that map to the first 8 terminal colors
-
color_bucket_logger.term_colors.NUMBER_OF_ALL_COLORS= 203¶ The number of total colors when excluded and skipped colors are considered. The color mappers use this to know what number to modulus (%) by to figure out the color bucket.
-
color_bucket_logger.term_colors.RESET_SEQ_IDX= 256¶ The index for a ‘reset’
-
color_bucket_logger.term_colors.RGB_COLOR_OFFSET= 18¶ Used to determine what color index we start from.
The xterm256 color indexes are:
0-7 normal term colors
8-15 bright term colors
16-231 are the rest from a 6x6x6 (216 color) rgb cube
16, 17 are black and very dark blue so they are skipped since they are hard to read.
232-255 are the grays (white to gray to black) and are skipped and why END_OF_THREAD_COLORS is 231.