oxidecomputer / omicron

Omicron: Oxide control plane
Mozilla Public License 2.0
240 stars 36 forks source link

wicket could degrade better without TrueColor support? #3568

Open davepacheco opened 1 year ago

davepacheco commented 1 year ago

On the stock Mac Terminal.app, apparently regardless of the color scheme, Wicket looks like this:

Screenshot 2023-07-11 at 8 08 55 PM Screenshot 2023-07-11 at 8 06 35 PM

The splash screen is also blank for a few second.

davepacheco commented 1 year ago

Mac users are advised to use a terminal with truecolor support. iTerm2 was easy to install and worked for me.

sunshowers commented 1 year ago

For reference: https://github.com/termstandard/colors#not-supporting-truecolor

david-crespo commented 1 year ago

In an interactive program that can read terminal responses, a more reliable method is available, that is transparent to sudo & ssh.

Simply try sending a truecolor value to the terminal, followed by a query to ask what color it currently has. If the response indicates the same color as was just set, then truecolor is supported.

benjaminleonard commented 1 year ago

I'm long overdue another look at the wicket UI, we can fold adding colour fallbacks into that work

jclulow commented 1 year ago

Interestingly there is a mechanism suggested for automatic detection in the document you mention, @sunshowers! But of course it does not appear to work with Alacritty, so I've filed an RFE there: https://github.com/alacritty/alacritty/issues/7184

Will be interesting to see if it works with other terminals!