question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cli: improve colors used in CLI output to be friendly for dark/light background terminals

See original GitHub issue
Screenshot 2019-11-28 at 16 33 04

Reproduction Steps

Run cdk init app --language=typescript in a Terminal with a light background color. I used VS Code Insiders with the i Light color theme.

Environment

  • CLI Version : 1.18.0 (build bc924bc)
  • Framework Version:
  • OS : macOS Catalina 10.15.1 (19B88)
  • Language :

Other

In general I recommend disabling color output unless the user explicitly requests it.


This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
wolveriancommented, Dec 3, 2019

So, there are two features here that I would like:

  • Make the output equally readable on all dark and light backgrounds, and
  • Don’t use colors by default, or support the NO_COLOR environment variable (ref. https://no-color.org).
0reactions
l0b0commented, Dec 14, 2020

Why is this closed? There is a workaround, but the default is still colour (which is very useful) and the contrast is pretty bad on a dark background:

Screenshot from 2020-12-15 12-02-42

Read more comments on GitHub >

github_iconTop Results From Across the Web

Colorizing your terminal and shell environment?
I try to use color on the command line, because color makes the output more useful and intuitive. What options exist to add...
Read more >
5 Tweaks to Customize the Look of Your Linux Terminal
Tip 0: Use separate terminal profiles for your customization · Tip 1: Use a dark/light terminal theme · Tip 2: Change the font...
Read more >
Latest improvements to the Azure CLI experience
Colors from the Azure CLI theme will not override your pre-customized settings. We only map the color names to the corresponding color values ......
Read more >
7 Tips to Customize the Look of Your Linux Terminal
1. Create a New Terminal Profile · 2. Use a Dark/Light Terminal Theme · 3. Change the Font Type and Size · 4....
Read more >
How to change the color of your Linux terminal
You can add color to your Linux terminal using special ANSI encoding settings, either dynamically in a terminal command or in configuration ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found