Skip to content

SGR 1 and SGR 8 don't work when adjusting lightness of indistinguishable text #11917

Closed
@j4james

Description

@j4james

Windows Terminal version

1.12.2931.0

Windows build number

10.0.19041.1348

Other Software

No response

Steps to reproduce

  1. In the Setting UI, go to the Profiles Defaults page and select the Appearance tab.
  2. Make sure the option Automaticaly adjust lightness of indistinguishable text is enabled.
  3. Open a bash shell.
  4. Execute the following command: printf "\e[m DEFAULT \e[1m BRIGHT \e[8m CONCEALED \e[m\n"

Expected Behavior

I'd expect the text with the SGR 1 attribute to be brighter, and the text with SGR 8 attribute to be invisible.

image

Actual Behavior

All of the text looks exactly the same.

image

This wouldn't be that big a deal if it was an option that users specifically opted in to, but I realise now that it's actually on by default. Was that really intentional? Even ignoring these problems, I would have thought the performance overhead alone was enough of a reason to make it opt-in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issue-BugIt either shouldn't be doing this or needs an investigation.Priority-2A description (P2)Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions