You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Terminal should support ANSI SGR 53 overline attribute #6000
Most recent terminal applications have extensive support for ANSI terminal commands and attributes. One extremely useful one is the overline (SGR 53) attribute that can be used for status lines and other similar uses.
So for this one we also have the LVB gridline attributes, technically. We need to figure out how they combine with underline/overline and grid bottom/top
So for this one we also have the LVB gridline attributes, technically.
Yeah, I was just going to suggest using the COMMON_LVB_GRID_HORIZONTAL for this as a quick fix. It's no worse than our current usage of COMMON_LVB_UNDERSCORE for underline. I hacked together a quick implementation to test, and it looked OK to me. I'm not exactly sure where the overline is supposed to be rendered, but Mintty at least seems to have it at the very top of the cell. Haven't checked other implementations yet.
As for running out of bits in ExtendedAttributes , note that the lower byte of the _wAttrLegacy word is actually unused as far as I can tell, so we should have an additional 8 bits to play around with.
FYI, I've got a branch with this implemented, but it's built on top of #6506, so I'll only be able to do a PR once that's merged, which may be a while.
Activity
zadjii-msft commentedon May 19, 2020
Yep, we probably should.I'm mildly worried that the
ExtendedAttributesenum used all the flags in aBYTE, but we'll figure it out.terminal/src/inc/conattrs.hpp
Lines 11 to 24 in c78f264
DHowett commentedon May 19, 2020
So for this one we also have the LVB gridline attributes, technically. We need to figure out how they combine with underline/overline and grid bottom/top
j4james commentedon May 19, 2020
Yeah, I was just going to suggest using the
COMMON_LVB_GRID_HORIZONTALfor this as a quick fix. It's no worse than our current usage ofCOMMON_LVB_UNDERSCOREfor underline. I hacked together a quick implementation to test, and it looked OK to me. I'm not exactly sure where the overline is supposed to be rendered, but Mintty at least seems to have it at the very top of the cell. Haven't checked other implementations yet.As for running out of bits in
ExtendedAttributes, note that the lower byte of the_wAttrLegacyword is actually unused as far as I can tell, so we should have an additional 8 bits to play around with.DHowett commentedon May 19, 2020
Holy crap! I never noticed this. That's clever/evil/cl-evil.
zadjii-msft commentedon May 19, 2020
That's brilliant and I love it
j4james commentedon Jun 25, 2020
FYI, I've got a branch with this implemented, but it's built on top of #6506, so I'll only be able to do a PR once that's merged, which may be a while.
Add support for the "overline" graphic rendition attribute (#6754)
DHowett commentedon Aug 21, 2020
🎉 As of Windows Insider build 20197, this is also supported in the traditional console.