Refrain from using red color for successful output in terminal
See original GitHub issueCurrently, 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:
- Created 4 years ago
- Reactions:9
- Comments:13 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Recommended guideline:
Use red for errors only.
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.