[PR #418] Fix ColorTool parser and registry bugs, and refactor #24127

Closed
opened 2026-01-31 09:01:32 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


This is the PR we discussed in https://github.com/Microsoft/console/issues/413 for ColorTool. There are two bugfixes in this PR (the final two commits). The first two commits are the refactoring.

  • 7daea0a - First refactoring commit, pulls logic out of Program.cs and into other files.
  • 05f518d - Second refactoring commit, gets rid of mutable fields and mutable statics.
  • b61cb830 - Only run the required parser for the colorscheme file. Before, all parsers could be run for a single colorscheme file, so we could get error output even if everything imported correctly.
  • 12fff31 - Allow the writing of screen/popup background/foreground indices to the registry. Before this only worked for the currently running console, now it will save for all consoles.

This PR modifies a lot of files, but I've isolated the bulk of the changes in the first commits, so there are no user-facing changes in those commits.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/418 **State:** closed **Merged:** Yes --- This is the PR we discussed in https://github.com/Microsoft/console/issues/413 for ColorTool. There are two bugfixes in this PR (the final two commits). The first two commits are the refactoring. - 7daea0a - First refactoring commit, pulls logic out of Program.cs and into other files. - 05f518d - Second refactoring commit, gets rid of mutable fields and mutable statics. - b61cb830 - Only run the required parser for the colorscheme file. Before, all parsers could be run for a single colorscheme file, so we could get error output even if everything imported correctly. - 12fff31 - Allow the writing of screen/popup background/foreground indices to the registry. Before this only worked for the currently running console, now it will save for all consoles. This PR modifies a lot of files, but I've isolated the bulk of the changes in the first commits, so there are no user-facing changes in those commits.
claunia added the pull-request label 2026-01-31 09:01:32 +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#24127