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

Some color conflicts with PS and PWSH coloring of command line args #11171

Closed
vefatica opened this issue Sep 7, 2021 · 11 comments
Closed

Some color conflicts with PS and PWSH coloring of command line args #11171

vefatica opened this issue Sep 7, 2021 · 11 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@vefatica
Copy link

vefatica commented Sep 7, 2021

Windows Terminal version (or Windows build number)

Microsoft Windows 10 Pro for Workstations 10.0.19043.1165 (2009, 21H1) Windows Terminal Preview 1.11.2421.0

Other Software

Powershell, PWSH

Steps to reproduce

In WT, Powershell or PWSH, with "One Half Light" or "Solarized Light", type a command with a decimal number as an argument.

Expected Behavior

The decimal number argument is visible.

Actual Behavior

The argument is not visible. I imagine PS/PWSH isn't scheme-aware and is giving it a color equal to the background color. And I imagine it's not WT's problem.

BTW, WT doesn't automatically find PWSH (Powershell 7), does it?

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Sep 7, 2021
@zadjii-msft
Copy link
Member

@DHowett
Copy link
Member

DHowett commented Sep 7, 2021

While I weep about Solarized . . .

BTW, WT doesn't automatically find PWSH (Powershell 7), does it?

It should, if it is installed in a normal place. Knowing you (and the wild things you do), you probably have it installed to Q:\ somewhere.

@vefatica
Copy link
Author

vefatica commented Sep 7, 2021

Knowing you (and the wild things you do), you probably have it installed to Q:\ somewhere.

Yup, I do things like that, but I think I accepted the default location. It's in

v:\> which pwsh
pwsh is an external : C:\Program Files\PowerShell\7\pwsh.EXE

WT didn't/doesn't find it (that is, doesn't create a profile for it).

@DHowett
Copy link
Member

DHowett commented Sep 7, 2021

hmmmm. have you put it in disabledProfileSources?

@vefatica
Copy link
Author

vefatica commented Sep 7, 2021

I have these.

    "disabledProfileSources": 
    [
        "Windows.Terminal.Wsl",
        "Windows.Terminal.Azure",
        "Windows.Terminal.PowershellCore"
    ],

I mentioned in another thread (two weeks ago, no respones) that if I'm using an unzipped-only install of WT[P] and I go from the settings UI to settings.json and comment those six lines, WT disappears when I save it in the editor.

@vefatica
Copy link
Author

vefatica commented Sep 7, 2021

Does "Windows.Terminal.PowershellCore" refer to both Powershells? I put something like that in settings.json when I first got WT. long before Powershell 7. But I didn't create a specific one after installing PWSH.

@zadjii-msft
Copy link
Member

Does "Windows.Terminal.PowershellCore" refer to both Powershells?

The "Windows.Terminal.PowershellCore" generator is for all(?) versions of pwsh.exe, but not the powershell.exe (PowerShell 5) that ships with Windows.


In general, Solarized is just a bad scheme, and we feel bad for shipping it, and it shouldn't be used with PowerShell. We're gonna make it better in /dup #2638, and hopefully just silently remove it in /dup #6997

@ghost
Copy link

ghost commented Sep 8, 2021

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost closed this as completed Sep 8, 2021
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Sep 8, 2021
@vefatica
Copy link
Author

vefatica commented Sep 8, 2021

What would one put in "disabledProfileSources" to disable the powershell.exe one? The docs mention only these:

"Windows.Terminal.Wsl", "Windows.Terminal.Azure", and/or "Windows.Terminal.PowershellCore"

A quick question ... WT redraws the viewport and history upon an OSC4/10/11/12(that's nice). If I'm sending 19 of them would I gain anything by putting them all in a big string and calling WriteConsoleW only once (as opposed to doing them one at a time in a loop)?

Thanks!

@zadjii-msft
Copy link
Member

The powershell.exe profile isn't dynamic, it's a hardcoded default profile. You'll have to set hidden: true on that one manually.

A quick question ... WT redraws the viewport and history upon an OSC4/10/11/12(that's nice). If I'm sending 19 of them would I gain anything by putting them all in a big string and calling WriteConsoleW only once (as opposed to doing them one at a time in a loop)?

Maybe, but probably not? ConPTY and Terminal both throttle frames, so at the end of the day, the screen's only going to get updated once per 1/60th of a second, so there's only a marginal chance that the frame actually gets called in the middle of that output.

@vefatica
Copy link
Author

vefatica commented Sep 8, 2021

Aha! So it's not updated with every OSC (I should have figured that it was done at regular intervals). Thanks!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

3 participants