-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tty: improve color detection #26264
tty: improve color detection #26264
Conversation
@BridgeAR sadly an error occured when I tried to trigger a build :( |
Resumed CI https://ci.nodejs.org/job/node-test-pull-request/21045/ ✅ (besides AIX) |
1) Using `process.env.TERM = 'dumb'` should never return any colors. 2) `process.env.TERM = 'terminator'` supports 24 bit colors. 3) Add support for `process.env.TERM = 'rxvt-unicode-24bit'` 4) `Hyper` does not support true colors anymore. It should fall back to the xterm settings in regular cases. 5) `process.env.COLORTERM = 'truecolor'` should return 24 bit colors.
63b7890
to
0f37b28
Compare
I guess AIX uses a dumb terminal when running the @nodejs/build it would be great if you could verify my suspicion. @addaleax @Fishrock123 PTAL |
https://ci.nodejs.org/job/node-test-commit-aix/21347/nodes=aix61-ppc64/injectedEnvVars/ lists |
@richardlau thanks! |
It might be dependent on which node in Jenkins was used. Paging through the jobs it looks like the jobs that ran on |
I am quite frankly surprised that pty even works on AIX... |
@Fishrock123 @addaleax would you be so kind and just confirm your LG for the test changes? |
PR-URL: nodejs#26264 Refs: nodejs#26261 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: James M Snell <[email protected]>
1) Using `process.env.TERM = 'dumb'` should never return any colors. 2) `process.env.TERM = 'terminator'` supports 24 bit colors. 3) Add support for `process.env.TERM = 'rxvt-unicode-24bit'` 4) `Hyper` does not support true colors anymore. It should fall back to the xterm settings in regular cases. 5) `process.env.COLORTERM = 'truecolor'` should return 24 bit colors. PR-URL: nodejs#26264 Refs: nodejs#26261 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #26264 Refs: #26261 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: James M Snell <[email protected]>
1) Using `process.env.TERM = 'dumb'` should never return any colors. 2) `process.env.TERM = 'terminator'` supports 24 bit colors. 3) Add support for `process.env.TERM = 'rxvt-unicode-24bit'` 4) `Hyper` does not support true colors anymore. It should fall back to the xterm settings in regular cases. 5) `process.env.COLORTERM = 'truecolor'` should return 24 bit colors. PR-URL: #26264 Refs: #26261 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: James M Snell <[email protected]>
process.env.TERM = 'dumb'
should never return any colors.process.env.TERM = 'terminator'
supports 24 bit colors.process.env.TERM = 'rxvt-unicode-24bit'
Hyper
does not support true colors anymore. It should fall backto the xterm settings in regular cases.
process.env.COLORTERM = 'truecolor'
should return 24 bit colors.Refs: #26261
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes