-
Notifications
You must be signed in to change notification settings - Fork 189
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
Wing Console errors don't support ASCII colors #6582
Comments
Saving this ChatGPT output for later :) ASCII colors, often referred to as ANSI escape codes, are sequences used to control text formatting, including color, in terminal and console output. These codes are embedded within strings and are interpreted by the terminal to display text in different colors and styles. Here's a brief explanation of how they work and how you can convert them into RGB colors: ANSI Escape Codes for ColorsANSI escape codes for colors generally follow this pattern:
For example, Common Color CodesHere are some common ANSI color codes:
Converting ANSI Colors to RGBWhile ANSI colors are not directly specified in RGB values, we can map them to approximate RGB values based on common terminal color schemes. Here's a basic mapping of ANSI color codes to their RGB equivalents:
Example ConversionLet's take your output and convert it to RGB:
Here’s what it would look like with the ANSI codes replaced by RGB values:
This should give you a clearer idea of how ANSI escape codes are translated to RGB colors for display in a terminal. |
This changeset adds support for ASCII colors, normally used in the terminal, to the Console's Blue Screen Of Death. Fixes #6582.
Congrats! 🚀 This was released in Wing 0.77.9. |
I tried this:
This happened:
I expected this:
To have ASCII colors!
Is there a workaround?
No response
Anything else?
No response
Wing Version
No response
Node.js Version
No response
Platform(s)
No response
Community Notes
The text was updated successfully, but these errors were encountered: