Terminal: ColorTool not setting any colors in Windows Terminal

Created on 6 Jun 2019  路  9Comments  路  Source: microsoft/terminal

Environment

Microsoft Windows [Version 10.0.18362.145]
Windows Terminal built off master today, with ColorTool built off master today

I've built them both using release, Windows Terminal is deployed (Windows Terminal (Dev Build) launched from Start Menu).

Steps to reproduce

ColorTool.exe -c
ColorTool.exe {any iterm scheme}

bug_report_1
bug_report_2

Expected behavior

Color scheme should be set in local Windows Terminal instance.

Actual behavior

Its not getting set.

Note that I tried this out in a regular PowerShell instance launched from Start Menu and it seems to do what it's supposed to (at least from what I can tell), in that it sets the color scheme. I noted that the background color doesn't appear to be correct, which when I searched for ColorTool bug reports, I found #1150 which seems to be consistent with the behavior that I was seeing.

Help Wanted Issue-Task Needs-Tag-Fix Product-Colortool

Most helpful comment

+1,
ColorTool.exe can change the background color of normal/default Windows console windows, but not Windows Terminal Preview.

All 9 comments

Try colortool -x. Colortool needs that flag to be able to set the colors in a way a terminal (via conpty) can understand.

No change. When I read the documentation, I thought -x was for WSL.

bug_report_4

By the way, when running colortool directly in a PowerShell window, then running WSL (Ubuntu in this case) using "wsl," colors seem nicely preserved.
bug_report_5

Sorry, I'm not a windows terminal guru so I might be missing something obvious here.

Edit: just to make sure its apples to apples regarding the first report, ran -x in a cmd.exe tab as well. No change.
bug_report_6

Ohhhhh, I see what's wrong here - colortool isn't setting the _default_ background color in the -x scenario. We only just added support for the needed VT sequence to do that (#891), so colortool should be updated too.

+1,
ColorTool.exe can change the background color of normal/default Windows console windows, but not Windows Terminal Preview.

+1

Incidentally, you can detect this state by the issue still being open. :smile:

@zadjii-msft This

/mnt/c/Users/roman/installed/ColorTool$ ./ColorTool.exe -x schemes/solarized_light.itermcolors

changes background color in bash.exe.

This
/mnt/c/Users/roman/installed/ColorTool$ ./ColorTool.exe -x iTerm2-Color-Schemes/schemes/Terminal\ Basic.itermcolors

does not changes background color.

Terminal Basic taken from https://github.com/mbadolato/iTerm2-Color-Schemes.

I think I'm running into this issue. Attempting to use ColorTool to change the background of the 'One Half Dark' color scheme to black instead of grey in the Windows Terminal preview, and nothing is happening.

Yeah this one does not work in Windows Terminal Preview...

Yeah this one does not work in Windows Terminal Preview...

Incidentally, you can detect this state by the issue still being open. 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mdtauk picture mdtauk  路  3Comments

waf picture waf  路  3Comments

TayYuanGeng picture TayYuanGeng  路  3Comments

warpdesign picture warpdesign  路  3Comments

ghost picture ghost  路  3Comments