Feature Request: Add ability to detect when running in terminal #2470
Labels
Issue-Feature
Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Resolution-Duplicate
There's another issue on the tracker that's pretty much the same thing.
Description of the new feature/enhancement
There doesn't seem to be an obvious way to detect when running from the terminal. This is a issue for applications and libraries where behavior is dependent on the terminal. For example, a Python library may require colorama for some terminals and not others.
Proposed technical implementation details
The most common and portable way to do this is to set the TERM environment variable when initializing the terminal.
The text was updated successfully, but these errors were encountered: