Terminal: Add support for SGR 2 Faint

Created on 28 Jun 2020  路  9Comments  路  Source: microsoft/terminal

We do not support Faint text.


Original content

Description of the new feature/enhancement

Windows Terminal doesn't appear to support the dim ansi escape code (SGR 2) or italic (SGR 3). Adding support for these would I think bring WT up to feature parity with most OSX and Linux terminals.

There are other SGR escape codes that would be nice to have, but aren't as common or as useful as dim and italic.

Proposed technical implementation details (optional)

Dim strikes me as an easy one to achieve. I imagine italic would be a little trickier.

Area-Rendering Area-VT Help Wanted Issue-Task Product-Conhost Resolution-Fix-Committed

All 9 comments

Thanks!

This is a curious issue. We're tracking all manner of different versions of "terminal doesn't render specific attributes":

  • #109 enable bold (this is a very divisive issue), #5384 "should bold apply to ITU indexed colors", #5682 "is bold 1;39 a separate color?"
  • #2916 support parsing faint/a couple others
  • #5461 italics aren't being rendered

I just started tackling #109, despite it being divisive, and I think the infrastructure we need to build to get it off the ground (a "base + variant" system for fonts) is going to be required for this.

I'm going to close this shortly but rework all of the above issues into an amalgamated "we should support different attributes, from parsing through to rendering" issue. Does that sound good?

Sounds good to me 馃憤

I'm going to close this shortly but rework all of the above issues into an amalgamated "we should support different attributes, from parsing through to rendering" issue. Does that sound good?

I added #6779 which provides a test script and an expected output.

It links another issue: there is no font switching, which would be useful for mixing different fonts.

@DHowett I've just realised this has been assigned to you, and wanted to check exactly which parts you're working on, or planning to work on. Reason being I was about to start on the faint attribute, as a follow up to the color refactoring in PR #6853, but if you already have plans for that, I can leave it to you.

Edit: I should add that my intention was to treat the faint attribute as entirely separate from bold/bright - i.e. both can be applied at the same time. My reasoning for this is explained in issue https://github.com/microsoft/terminal/issues/2916#issuecomment-652061927.

@j4james it鈥檚 assigned to me for administrative reasons; I鈥檓 going to create a scenario for the various attributes impacting the display of text, and then close/rework some of the ones we already have open to fit under it. If you want to do work in this area, you鈥檙e welcome to :smile: I just may change which issue number your PR eventually closes

I've repurposed this to track Faint, and crossed out mention of Faint in #2916. Your pull request can unabashedly close this issue and drop mention of 2916.

I've filed #6879 to track "all" attributes.

:tada:This issue was addressed in #6873, which has now been successfully released as Windows Terminal Preview v1.2.2022.0.:tada:

Handy links:

馃帀 As of Windows Insider build 20197, this is also supported in the traditional console.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dev-logan picture dev-logan  路  3Comments

TayYuanGeng picture TayYuanGeng  路  3Comments

warpdesign picture warpdesign  路  3Comments

xmm1989218 picture xmm1989218  路  3Comments

mdtauk picture mdtauk  路  3Comments