[PR #9792] Initialize the foreground and background in TermControl's constructor #27754

Open
opened 2026-01-31 09:24:02 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/9792

State: closed
Merged: No


We recently moved setting the foreground and background out of
TermControl::_ApplyUISettings , but that means we no longer set the
foreground/background in the constructor, resulting in the terminal
being gray on startup until we call UpdateAppearance after the
renderer is setup. This change sets the foreground and background in the
TermControl constructor to avoid this.

Validation Steps Performed

Terminal no longer starts up gray

**Original Pull Request:** https://github.com/microsoft/terminal/pull/9792 **State:** closed **Merged:** No --- We recently moved setting the foreground and background out of `TermControl::_ApplyUISettings` , but that means we no longer set the foreground/background in the constructor, resulting in the terminal being gray on startup until we call `UpdateAppearance` after the renderer is setup. This change sets the foreground and background in the TermControl constructor to avoid this. ## Validation Steps Performed Terminal no longer starts up gray
claunia added the pull-request label 2026-01-31 09:24:02 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27754