-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
import {getColorDepth} from 'tty' #40236
Comments
If we consider making EDIT: There is a reason why this cannot be achieved for now as meantioned in the PR |
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment. For more information on how the project manages feature requests, please consult the feature request management document. |
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment. For more information on how the project manages feature requests, please consult the feature request management document. |
Is your feature request related to a problem? Please describe.
The
getColorDepth
andhasColors
functions are currently attached to thetty.WriteStream
prototype, even though they seem fairly standalone (their result depends on the env, not the stream). As a result, accessing them "legally" (without extracting them from the prototype) isn't possible whenprocess.stdout
& co aren't proper ttys.Describe the solution you'd like
It would be useful to be able to just import
getColorDepth
& friends fromtty
.The text was updated successfully, but these errors were encountered: