Skip to content

Commit 1a72312

Browse files
committed
Add more GNU codes now supported by Terminal::ANSIColor
1 parent 64e9ea8 commit 1a72312

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/Color/DirColors.rakumod

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ method !color-from-bsd-pair(Str:D $pair where *.chars == 2 --> Str:D) {
212212
method !color-from-gnu(Str:D $gnu --> Str:D) {
213213
# XXXX: Sadly can't just use uncolor() because GNU codes aren't quite SGR
214214
my constant %color-map =
215-
# XXXX: blink (05) and concealed (08) not supported by Terminal::ANSIColor
216-
# XXXX: Codes > 47 not yet supported
217-
'00' => '', '01' => 'bold', '04' => 'underscore', '07' => 'inverse',
215+
# XXXX: Codes > 47 (except 53) not yet supported
216+
'00' => '', '01' => 'bold', '04' => 'underline',
217+
'05' => 'blink', '07' => 'inverse', '08' => 'conceal',
218+
21 => 'dunderline', 53 => 'overline',
218219
30 => 'black', 31 => 'red', 32 => 'green', 33 => 'yellow',
219220
34 => 'blue', 35 => 'magenta', 36 => 'cyan', 37 => 'white',
220221
40 => 'on_black', 41 => 'on_red', 42 => 'on_green', 43 => 'on_yellow',

0 commit comments

Comments
 (0)