News for hackers. Stuff that matters.
Re:CLI Guidelines – A guide to help you write better command... by kps on Saturday December 05, 2020 @02:17PM (#25317417)
- Don't emit colour unless asked.

- Don't assume the user's terminal's background colour. Pragmatically, you can use red; the rest are too light or too dark.

Re:CLI Guidelines – A guide to help you write better command... by account42 on Monday December 07, 2020 @07:00AM (#25331343)
Or just don't use a terminal color scheme where the any foreground color except 30 has bad contrast with color 40 and don't use a default background color that has worse contrast than 40 with all foregreound colors other than 30.