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

feat: display elegant spinner on Windows Terminal #5

Closed
wants to merge 1 commit into from
Closed

feat: display elegant spinner on Windows Terminal #5

wants to merge 1 commit into from

Conversation

innocenzi
Copy link

@innocenzi innocenzi commented Jul 3, 2020

On conhost.exe, these characters were not supported. But on Windows Terminal, they are. The Windows Terminal adds the WT_SESSION environment variable, which allows to identify when it's used. Thanks to that, we can now display fancy figures on Windows.

This change updates the previous behavior by adding an additional check against the WT_SESSION environment variable, in order to allow these characters on the Windows Terminal.

On `conhost.exe`, these characters were not supported. But on Windows Terminal, they are. The Windows Terminal adds the [`WT_SESSION`](microsoft/terminal#840) environment variable, which allows to identify when it's used. Thanks to that, we can now display fancy figures on Windows.
@sindresorhus
Copy link
Owner

@innocenzi innocenzi deleted the patch-1 branch August 10, 2020 19:18
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.

2 participants