Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] cannot save background color #15

Closed
khuongduybui opened this issue Aug 14, 2017 · 5 comments
Closed

[bug] cannot save background color #15

khuongduybui opened this issue Aug 14, 2017 · 5 comments
Labels
Product-Conhost For issues in the Console codebase Resolution-Fix-Available It's available in an Insiders build or a release

Comments

@khuongduybui
Copy link

I know this is probably larger than the scope of this tool, but a bug is a bug is a bug is a bug.

When I use colortool with an iterm2color file, it correctly applies the background color to the console, but that color isn't saved anywhere.

Furthermore, when I manually override the iterm2color file to assign the background color to ColorTable00, it is overridden to Black (0, 0, 0) as soon as I open the Properties dialog.

I currently have to save it to defaults, then go to regedit and manually copy the key over, which is a pain.

@miniksa miniksa added the Product-Colortool This is a problem with the utility application ColorTool for manipulating the console color palette. label Aug 14, 2017
@zadjii-msft
Copy link
Member

@khuongduybui can i get a copy of the .itermcolor scheme you're using? I saw this once before but couldn't get it to repro.

@zadjii-msft zadjii-msft added the Work-Item It's being tracked by an actual work item internally. (to be removed soon) label Aug 14, 2017
@zadjii-msft
Copy link
Member

Also @paulcam206 wasn't there a bug in the property sheet that was related to this?

I found this sitting in a prototyping branch that never got merged, sounds a lot like this issue....

Fix a bug where the ColorTable00 would be 0,0,0

  Sometimes the PropSheet would send an EN_CHANGE before the colors page was fully initialized.
  This would cause the colors page to use the current values of the dialog boxes (0,0,0) to update the selected color.

I think this is actually a conhost bug.

@zadjii-msft zadjii-msft added Product-Conhost For issues in the Console codebase and removed Product-Colortool This is a problem with the utility application ColorTool for manipulating the console color palette. labels Aug 14, 2017
@khuongduybui
Copy link
Author

I might have reported 2 issues here:

  1. When the iterm2color file contains the background color not included in the 16 defined colors. colortool still correctly sets the background, it I guess there're nowhere I can save that value to...
    My current workaround for this is to override ColorTable00 with the background color.
    There are a lot of schemes like that but if you want a specific one, try https://github.com/mbadolato/iTerm2-Color-Schemes/blob/master/schemes/Solarized%20Dark%20Higher%20Contrast.itermcolors

  2. The bug "where the ColorTable00 would be 0,0,0" as @zadjii-msft listed.
    My current workaround for this is to write to defaults, which gets written to Registry, then get it there.

@zadjii-msft
Copy link
Member

Ah, okay yea. The second part is the one that I might have a fix for. The first one is... more complicated.
To copy from a comment in a mail thread:

Now, as far as why there’s 20 colors vs our 16. The reason why the screenshots on https://github.com/mbadolato/iTerm2-Color-Schemes won’t match up exactly with our output is because Linux terminals (including PuTTY, iTerm2, gnome-terminal, even conemu really) have a SEPARATE “Default” foreground and background, while conhost uses an index from the table as our “Default”. They also have a separate “Bold/Bright” version of the default FG and BG, for an extra 4 colors, 20 total.

I haven’t taken a super close look at it, but if I had to guess, I’d think that adding support for additional separate “Default” colors (unique from the table) would probably require as much work as went into supporting full RGB sequences in the first place, as well as a UI change to the property sheet. Not that it wouldn’t be welcome, but it would be a lot of work.

@zadjii-msft
Copy link
Member

I was keeping this open for the first part of the issue, with the 0, 0, 0 bug, but I'm not seeing it anymore. Presumably the fix I had mentioned on Aug 14 was in fact the fix for this. I'm going to resolve this issue.

@zadjii-msft zadjii-msft added Resolution-Fix-Available It's available in an Insiders build or a release and removed Work-Item It's being tracked by an actual work item internally. (to be removed soon) labels Oct 15, 2018
miniksa pushed a commit that referenced this issue Oct 4, 2019
Added public access for rows and colums that are set in the terminal.
carlos-zamora pushed a commit that referenced this issue Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product-Conhost For issues in the Console codebase Resolution-Fix-Available It's available in an Insiders build or a release
Projects
None yet
Development

No branches or pull requests

3 participants