[PR #400] [MERGED] Back and forground index export #24111

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/400
Author: @LokiMidgard
Created: 3/29/2019
Status: ✅ Merged
Merged: 4/2/2019
Merged by: @miniksa

Base: master ← Head: back-and-forground-index-export


📝 Commits (9)

  • cafe71c added popup color to scheme
  • 16b1b05 added abblity to parse popup and screen color from ini file
  • 99f71a0 Export now writes screen and popup indexes in ini
  • b38f6ff Added check if screen or popup colors were not found.
  • c1e1f51 Merge branch 'master' into back-and-forground-index-export
  • 9bf9a6f add popup color support to json format
  • 3484e07 Fix spelling of foreground (was forground)
  • a247624 encapsule console attributes in struct
  • 2661fbe put console attributes in own variable

📊 Changes

6 files changed (+126 additions, -18 deletions)

View changed files

📝 tools/ColorTool/ColorTool/ColorScheme.cs (+6 -6)
➕ tools/ColorTool/ColorTool/ConsoleAttributes.cs (+17 -0)
📝 tools/ColorTool/ColorTool/IniSchemeParser.cs (+50 -1)
📝 tools/ColorTool/ColorTool/JsonParser.cs (+22 -1)
📝 tools/ColorTool/ColorTool/Program.cs (+29 -9)
📝 tools/ColorTool/ColorTool/XmlSchemeParser.cs (+2 -1)

📄 Description

This is an proposal to store background and foreground color index.

I've added two section screen and popup. Both sections contain two keys FORGROUND and BACKGROUND. The assignable values are keys of the table section.

sample

[table]
DARK_BLACK = 12,12,12
DARK_BLUE = 0,55,218
DARK_GREEN = 19,161,14
DARK_CYAN = 58,150,221
DARK_RED = 197,15,31
DARK_MAGENTA = 1,36,86
DARK_YELLOW = 238,237,240
DARK_WHITE = 204,204,204
BRIGHT_BLACK = 118,118,118
BRIGHT_BLUE = 59,120,255
BRIGHT_GREEN = 22,198,12
BRIGHT_CYAN = 97,214,214
BRIGHT_RED = 231,72,86
BRIGHT_MAGENTA = 180,0,158
BRIGHT_YELLOW = 249,241,165
BRIGHT_WHITE = 242,242,242

[screen]
FOREGROUND = DARK_YELLOW
BACKGROUND = DARK_MAGENTA

[popup]
FOREGROUND = DARK_CYAN
BACKGROUND = BRIGHT_WHITE

[info]
name = powershell-default

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/400 **Author:** [@LokiMidgard](https://github.com/LokiMidgard) **Created:** 3/29/2019 **Status:** ✅ Merged **Merged:** 4/2/2019 **Merged by:** [@miniksa](https://github.com/miniksa) **Base:** `master` ← **Head:** `back-and-forground-index-export` --- ### 📝 Commits (9) - [`cafe71c`](https://github.com/microsoft/terminal/commit/cafe71c50b01350668c681b55f5917037920f06c) added popup color to scheme - [`16b1b05`](https://github.com/microsoft/terminal/commit/16b1b059a438e688aec15ba494c0924727add2b8) added abblity to parse popup and screen color from ini file - [`99f71a0`](https://github.com/microsoft/terminal/commit/99f71a0cc5018a8b3ad5ba068eb22e3645a79561) Export now writes screen and popup indexes in ini - [`b38f6ff`](https://github.com/microsoft/terminal/commit/b38f6ffbd134331b95e73a111e00d6a378d2a61a) Added check if screen or popup colors were not found. - [`c1e1f51`](https://github.com/microsoft/terminal/commit/c1e1f5124c7b959d7a0c0d7052e67fca89199ae5) Merge branch 'master' into back-and-forground-index-export - [`9bf9a6f`](https://github.com/microsoft/terminal/commit/9bf9a6f62cbae873fef0204c42f81a82d05510f2) add popup color support to json format - [`3484e07`](https://github.com/microsoft/terminal/commit/3484e07089dd8b90e92c296a62f668abbfbe56d6) Fix spelling of foreground (was forground) - [`a247624`](https://github.com/microsoft/terminal/commit/a247624e907f83f5b756104d22631a9b677fc881) encapsule console attributes in struct - [`2661fbe`](https://github.com/microsoft/terminal/commit/2661fbe0b9dc3b35ee5431aef1f7d9d4e0171f59) put console attributes in own variable ### 📊 Changes **6 files changed** (+126 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `tools/ColorTool/ColorTool/ColorScheme.cs` (+6 -6) ➕ `tools/ColorTool/ColorTool/ConsoleAttributes.cs` (+17 -0) 📝 `tools/ColorTool/ColorTool/IniSchemeParser.cs` (+50 -1) 📝 `tools/ColorTool/ColorTool/JsonParser.cs` (+22 -1) 📝 `tools/ColorTool/ColorTool/Program.cs` (+29 -9) 📝 `tools/ColorTool/ColorTool/XmlSchemeParser.cs` (+2 -1) </details> ### 📄 Description This is an proposal to store background and foreground color index. I've added two section `screen` and `popup`. Both sections contain two keys `FORGROUND` and `BACKGROUND`. The assignable values are keys of the `table` section. **sample** ```ini [table] DARK_BLACK = 12,12,12 DARK_BLUE = 0,55,218 DARK_GREEN = 19,161,14 DARK_CYAN = 58,150,221 DARK_RED = 197,15,31 DARK_MAGENTA = 1,36,86 DARK_YELLOW = 238,237,240 DARK_WHITE = 204,204,204 BRIGHT_BLACK = 118,118,118 BRIGHT_BLUE = 59,120,255 BRIGHT_GREEN = 22,198,12 BRIGHT_CYAN = 97,214,214 BRIGHT_RED = 231,72,86 BRIGHT_MAGENTA = 180,0,158 BRIGHT_YELLOW = 249,241,165 BRIGHT_WHITE = 242,242,242 [screen] FOREGROUND = DARK_YELLOW BACKGROUND = DARK_MAGENTA [popup] FOREGROUND = DARK_CYAN BACKGROUND = BRIGHT_WHITE [info] name = powershell-default ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:01:27 +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#24111