Skip to content
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

Detect new Windows terminal #27

Closed
wants to merge 1 commit into from

Conversation

lmariscal
Copy link

The new Windows terminal fully supports Unicode symbols, sadly there is no
proper way to identify it yet. microsoft/terminal#1040
exists to tackle this issue, in the meantime every terminal session has a unique
env variable WT_SESSION which can be used to detect the terminal type.

If you are okay with this PR as it is, or if you want to wait until a proper
detection method is implemented, please let me know.

@sindresorhus
Copy link
Owner

I'd rather wait for microsoft/terminal#1040.

WT_SESSION is too generic and could cause weird problems.

@lmariscal
Copy link
Author

@sindresorhus sure, just wanted to create the PR to have it as a pending task.

@be5invis
Copy link

be5invis commented Jul 4, 2019

Some other terminals like VSCode may have Unicode support too.
Ahh that is the case a user-agent-like $TERM become useful.

@sindresorhus
Copy link
Owner

I'm gonna close this for now. Feel free to open a new PR when microsoft/terminal#1040 is resolved and shipping in a live version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants