-
Notifications
You must be signed in to change notification settings - Fork 3
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
Spinners don't render in Powershell or Command Prompt #388
Comments
PowerShell community discord confirmed multiple times that the default terminal (conhost) won't display emojis. The new Windows Terminal can, but is an optional component. @dylanratcliffe I'm worried that WSL also might run in conhost (what else would it be) and thus using the linux build won't work either. Can you check that on your windows instance? |
We can detect that we are running under WSL like so:
|
So in summary we have the following:
So I think the sanest thing we can do is try to detect the correct spinners to use:
|
I've poked around a bit at conhost (the default windows terminal emulator) and Windows Terminal (the shiny new thing) and there's only pain and suffering down this path. See also: microsoft/terminal#7434 When using Windows Terminal, WT_SESSION also exists in WSL processes, so the amended decision tree is: Of course this still can cause false positives (when conhost is loaded from WT and has WT_SESSION set without the capabilities), but clearly the Windows Terminal folks are not interested in solving this problem, so we're out of luck then. |
The fonts that are used here don't seem to support the emojis. If you copy-paste into something else it works fine, so i'm assuming it's the fonts, we will have to switch so something mega-basic when we are on these shells.
Here's where this is printed in code:
cli/cmd/tea_taskmodel.go
Lines 121 to 123 in 0c0fd07
The text was updated successfully, but these errors were encountered: