Skip to content

Commit f45e0ad

Browse files
committed
Support several more basic SGR attributes
* Add support for faint, strike, overline, and dunderline. * Improve descriptions in README to include ECMA-48 reference.
1 parent 9618c04 commit f45e0ad

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

lib/Terminal/Capabilities.rakumod

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,14 @@ drawing symbols (often generated internally by the terminal emulator):
126126
=begin table
127127
Attribute | Supported Feature
128128
===============|========================================
129-
.bold | ANSI/VT100 bold attribute
130-
.italic | ANSI/VT100 italic attribute
131-
.inverse | ANSI/VT100 inverse attribute
132-
.underline | ANSI/VT100 underline attribute
129+
.bold | ANSI/VT/ECMA-48 bold attribute
130+
.faint | ANSI/VT/ECMA-48 faint attribute
131+
.italic | ANSI/VT/ECMA-48 italic attribute
132+
.inverse | ANSI/VT/ECMA-48 inverse attribute
133+
.strike | ANSI/VT/ECMA-48 strike attribute
134+
.overline | ANSI/VT/ECMA-48 overline attribute
135+
.underline | ANSI/VT/ECMA-48 underline attribute
136+
.dunderline | ANSI/VT/ECMA-48 dunderline attribute
133137
.color3bit | Original paletted 3-bit color
134138
.colorbright | Bright variants of 3-bit palette
135139
.color8bit | 6x6x6 color cube and 24-value grayscale
@@ -201,9 +205,14 @@ has Bool $.sep-sextants = False;
201205
# Feature flags, with defaults based on majority of Terminal::Tests
202206
# screenshot submissions (True iff universally supported or nearly so)
203207
has Bool $.bold = True; #= Supports bold attribute
208+
has Bool $.faint = False; #= Supports faint attribute
204209
has Bool $.italic = False; #= Supports italic attribute
205210
has Bool $.inverse = True; #= Supports inverse attribute
211+
212+
has Bool $.strike = False; #= Supports strike attribute (strikethrough)
213+
has Bool $.overline = False; #= Supports overline attribute
206214
has Bool $.underline = True; #= Supports underline attribute
215+
has Bool $.dunderline = False; #= Supports dunderline attribute (double underline)
207216

208217
has Bool $.color3bit = True; #= Supports original paletted 3-bit color
209218
has Bool $.colorbright = False; #= Supports bright foregrounds for 3-bit palette

0 commit comments

Comments
 (0)