Minor bug: Color schema not recognized if != (^[A-Z].*) #13605

Closed
opened 2026-01-31 03:47:09 +00:00 by claunia · 2 comments
Owner

Originally created by @altimmons on GitHub (Apr 23, 2021).

This is in the dubious maybe "its a feature not a bug" field.
But json schemas for color schemes fail if the first letter is lowercase.

If its intentional, close this and move on, though it seems an odd restriction, and further may cause issues with localization down the road.

an example is excessive here but still:

  "schemes": [
    {
      "name": "Scratch2",
      "background": "#15202c",
      "foreground": "#808080",
<!--truncated -->

works, but the following does not:

  "schemes": [
    {
      "name": "scratch",
      "background": "#2d374b",
      "foreground": "#808080",
<!--trunc.  -->
Originally created by @altimmons on GitHub (Apr 23, 2021). This is in the dubious maybe "its a feature not a bug" field. But json schemas for color schemes fail if the first letter is lowercase. If its intentional, close this and move on, though it seems an odd restriction, and further may cause issues with localization down the road. an example is excessive here but still: ``` "schemes": [ { "name": "Scratch2", "background": "#15202c", "foreground": "#808080", <!--truncated --> ``` works, but the following does not: ``` "schemes": [ { "name": "scratch", "background": "#2d374b", "foreground": "#808080", <!--trunc. --> ```
Author
Owner

@zadjii-msft commented on GitHub (Apr 23, 2021):

I'm pretty confident that's not the case. I'm using ayu as my default color scheme and have for like a year now.

{
     "profiles":
     {
          "defaults":
          {
               "colorScheme" : "ayu",
               "experimental.retroTerminalEffect": false
          },
     },
    // Add custom color schemes to this array.
    // To learn more about color schemes, visit https://aka.ms/terminal-color-schemes
    "schemes": [
        {
          "name": "ayu",
          "black": "#000000",
          "red": "#ff3333",
          "green": "#b8cc52",
          "yellow": "#e7c547",
          "blue": "#36a3d9",
          "purple": "#f07178",
          "cyan": "#95e6cb",
          "white": "#ffffff",
          "brightBlack": "#323232",
          "brightRed": "#ff6565",
          "brightGreen": "#eafe84",
          "brightYellow": "#fff779",
          "brightBlue": "#68d5ff",
          "brightPurple": "#ffa3aa",
          "brightCyan": "#c7fffd",
          "brightWhite": "#ffffff",
          "background": "#0f1419",
          "foreground": "#e6e1cf"
        }
   ]
}

A longer example might actually be helpful here 😄

@zadjii-msft commented on GitHub (Apr 23, 2021): I'm pretty confident that's not the case. I'm using `ayu` as my default color scheme and have for like a year now. ```jsonc { "profiles": { "defaults": { "colorScheme" : "ayu", "experimental.retroTerminalEffect": false }, }, // Add custom color schemes to this array. // To learn more about color schemes, visit https://aka.ms/terminal-color-schemes "schemes": [ { "name": "ayu", "black": "#000000", "red": "#ff3333", "green": "#b8cc52", "yellow": "#e7c547", "blue": "#36a3d9", "purple": "#f07178", "cyan": "#95e6cb", "white": "#ffffff", "brightBlack": "#323232", "brightRed": "#ff6565", "brightGreen": "#eafe84", "brightYellow": "#fff779", "brightBlue": "#68d5ff", "brightPurple": "#ffa3aa", "brightCyan": "#c7fffd", "brightWhite": "#ffffff", "background": "#0f1419", "foreground": "#e6e1cf" } ] } ``` A longer example might actually be helpful here 😄
Author
Owner

@ghost commented on GitHub (Apr 27, 2021):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Apr 27, 2021): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13605