You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fails. If I skip that check (with stream.constructor.name === 'WritableWorkerStdio') then supportsColor returns correct information and color output does work. I'm not sure if that's the best fix or whether it even should be fixed.
The text was updated successfully, but these errors were encountered:
Ehhh depends. I've not yet used worker threads, so I'm not 100% sure, but if their stdio handles map to TTY handles they should probably report isatty==1.
Might be worth seeing if node has an issue open for it.
In worker threads, supports-color is unable to automatically detect color support.
It looks like the stream type in worker threads is
WritableWorkerStdio
which returnsisTTY
false so the check at:supports-color/index.js
Line 57 in 14a0e6f
stream.constructor.name === 'WritableWorkerStdio'
) then supportsColor returns correct information and color output does work. I'm not sure if that's the best fix or whether it even should be fixed.The text was updated successfully, but these errors were encountered: