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

Add colored header output #92209

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented May 21, 2024

Header messages are now displayed in gray, with the rendering method being colorized in the message.

ANSI escape codes are now stripped in the editor Output panel as well, which allows scripts to use custom ANSI escape codes outside of print_rich() while not affecting the Output panel's readability. This change was required for the newly printed ANSI escape codes to avoid affecting the editor Output panel. Message collapsing still works as expected:

Screenshot_20240521_180956

Additionally, the dim/faint display mode is now used instead of a "bright black" color for better compatibility across terminals (some themes could be displaying black text on a black background otherwise, or white text on a white background).

The Forward Mobile rendering method is now called Mobile in the startup message, for consistency with the editor display.

cc @Repiteo, as the dim/faint display mode ([2m) could be helpful for the SCons build time line where we used a 256-color gray previously to avoid the terminal theming issue.

Preview

The exact colors displayed will vary depending on your terminal emulator and its color scheme.

Before After
Screenshot_20240521_180017 Screenshot_20240521_180025

Header messages are now displayed in gray, with the rendering method
being colorized in the message.

ANSI escape codes are now stripped in the editor Output panel as well,
which allows scripts to use custom ANSI escape codes outside of `print_rich()`
while not affecting the Output panel's readability. This change was required
for the newly printed ANSI escape codes to avoid affecting the
editor Output panel.

Additionally, the dim/faint display mode is now used instead of a
"bright black" color for better compatibility across terminals
(some themes could be displaying black text on a black background otherwise,
or white text on a white background).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant