Cocotb: Can ANSI avoid using BLUE_FG/BG? Save my eyes please.

Created on 2 Mar 2021  路  6Comments  路  Source: cocotb/cocotb

The default color: (I've been putting up with this color for years.)
Screenshot_2021-03-02_10-29-18

After I changed the BLUE_xx in COLOR_INFO and COLOR_TEST in ANSI.py to BRIGHT_BLUE_xx and the result is much better:
Screenshot_2021-03-02_10-29-41

By the way, thanks all the contributors of cocotb.

question

All 6 comments

Isn't this just a configuration issue with your terminal? If BLUE_FG is unreadable, then change that color to be readable in your terminal config!

For reference, the color pallete default across a selection of platforms:

https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit

The crappy dark blue color is default on many terminals. It's really of no consequence what the color is. Bright blue will be better for the majority of people without additional configuration, and it's a 1 line change.

As a Linux user for more than 10 years, I didn't even know that I could set the color in the terminal settings menu.
I am using Gentoo system, terminal xfce4-terminal 0.8.9.2, the first screenshot is the default color "White on Black".

Should we leave the Running test x/y: with a blue background or change to white?

image

I noticed that as well. I think marking test start and test end help visually parse the output. We aren't marking test end though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

imphil picture imphil  路  7Comments

alexforencich picture alexforencich  路  5Comments

ktbarrett picture ktbarrett  路  8Comments

marlonjames picture marlonjames  路  8Comments

markusdd picture markusdd  路  8Comments