Skip to content

Add colored header output#92209

Open
Calinou wants to merge 1 commit intogodotengine:masterfrom
Calinou:header-add-colored-output
Open

Add colored header output#92209
Calinou wants to merge 1 commit intogodotengine:masterfrom
Calinou:header-add-colored-output

Conversation

@Calinou
Copy link
Copy Markdown
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).
@Calinou Calinou force-pushed the header-add-colored-output branch from 5913b48 to d765f84 Compare December 8, 2025 19:30
@Calinou Calinou requested a review from a team December 8, 2025 19:30
@Repiteo Repiteo requested a review from a team as a code owner February 17, 2026 20:10
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