Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uptty: add NO_COLOR and FORCE_COLOR support #26485
Conversation
BridgeAR
requested review from
Trott,
targos,
vsemozhetbyt and
starkwang
Mar 7, 2019
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot
added
the
tty
label
Mar 7, 2019
BridgeAR
referenced this pull request
Mar 7, 2019
Closed
doc: add examples for tty.getColorDepth() env #26248
BridgeAR
requested a review
from
addaleax
Mar 7, 2019
This comment has been minimized.
This comment has been minimized.
BridgeAR
added
the
semver-minor
label
Mar 7, 2019
BridgeAR
force-pushed the
BridgeAR:add-force-color
branch
from
b1653fb
to
af0b138
Mar 7, 2019
BridgeAR
requested review from
mcollina,
mhdawson and
silverwind
Mar 8, 2019
silverwind
approved these changes
Mar 8, 2019
|
LGTM, thought some sort of standardization attempt for |
This comment has been minimized.
This comment has been minimized.
|
@silverwind I am already working in that direction and opened issues in the |
BridgeAR
added
the
author ready
label
Mar 8, 2019
vsemozhetbyt
reviewed
Mar 8, 2019
|
Doc format LGTM with nits. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Resumed CI https://ci.nodejs.org/job/node-test-commit/26577/ |
This comment has been minimized.
This comment has been minimized.
|
It would be nice to get some further reviews @nodejs/repl @nodejs/util |
Fishrock123
approved these changes
Mar 18, 2019
| case '': | ||
| case '1': | ||
| case 'true': | ||
| warnOnDeactivatedColors(env); |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
BridgeAR
Mar 18, 2019
Author
Member
When moved above the switch, I'll have to exclude a lot of values. That's why it's inside.
BridgeAR
added a commit
to BridgeAR/node
that referenced
this pull request
Mar 19, 2019
This comment has been minimized.
This comment has been minimized.
|
Landed in 273398a |
BridgeAR commentedMar 7, 2019
This adds support to enforce a specific color depth by checking the
FORCE_COLORenvironment variable similar tochalk.On top of that we also add support for the
NO_COLORenvironmentvariable as suggested by https://no-color.org/.
Refs: #26248
This supersedes #26248.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes