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.

Refrain from using red color for successful output in terminal

See original GitHub issue

Currently, pipenv uses red to output standard virtualenv creation outputs:

Creating a virtualenv for this project…
Pipfile: /app/Pipfile
Using /usr/local/bin/python (3.7.3) to create virtualenv…
⠏ Creating virtual environment...Already using interpreter /usr/local/bin/python
Using base prefix '/usr/local'
New python executable in /root/.local/share/virtualenvs/app-4PlAip0Q/bin/python
Installing setuptools, pip, wheel...
done.

✔ Successfully created virtual environment! 
Virtualenv location: /root/.local/share/virtualenvs/app-4PlAip0Q

In a large terminal log output, this makes it very difficult to quickly scan the log for [absence of] errors.

Could we perhaps use a more subdued color (eg blue, albeit not the dark blue that people complained about), or even the default terminal color, since these aren’t particularly critical information to begin with…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
wadewilliamscommented, Oct 22, 2020

Probably the first step would be to agree on a set of guidelines for what each color means and when they should be used.

Recommended guideline:

Use red for errors only.

1reaction
jxltomcommented, May 9, 2019

I think this is in Circle CI which has different output with windows or linux terminals. It doesn’t display colors correctly, but this still needs some enhancement for sure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I print colored text to the terminal? - Stack Overflow
Print a string that starts a color/style, then the string, and then end the color/style change with '\x1b[0m' : print('\x1b[6;30;42m' + 'Success!
Read more >
How to Change the Output Color of Echo in Linux
The first one is for Red and the 'NOCOLOR' is to stop red and switch back to the default color. Here is another...
Read more >
Using console colors with Node.js - LogRocket Blog
Use Chalk, Colors.js, and Color-CLI to implement console colors in Node.js apps and make your apps' outputs more readable.
Read more >
How to have tail -f show colored output - Unix Stack Exchange
As for the color codes, I would use tput: red=$( tput -Txterm setaf 1 ) norm ...
Read more >
Prettify your Terminal Text With Termcolor and Pyfiglet
You might want to repeat printing some text in red, but you might find it inconvenient to keep repeating the function colored(text, 'red')...
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