Skip to content

Commit

Permalink
term_attr: add undercurl
Browse files Browse the repository at this point in the history
  • Loading branch information
trapd00r committed Jan 3, 2024
1 parent ce35030 commit 82de62f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions term_attr
Expand Up @@ -22,6 +22,7 @@ my $attr = {
italic => 3,
bolditalic => '1;3',
underline => 4,
undercurl => '4:2',
blink => 5,
blink_ms => 6,
reverse => 7,
Expand All @@ -44,6 +45,11 @@ for my $t( sort { $attr->{$a} cmp $attr->{$b} } keys(%{ $attr })) {
if($t eq 'underline') {
printf("\e[$attr->{$t}m$t\e[m\n%s\n", 'https://nounderlineonlinks.se');
}
elsif($t eq 'undercurl') {
# https://gitlab.com/gnachman/iterm2/-/issues/6382
printf("\e[4:3mundercurl\e[m\n");
printf("\e[4;58:5:197;4:3mundercurl, colored\e[m\n");
}
else {
printf("\e[$attr->{$t}m$t\e[m\n");
}
Expand Down

0 comments on commit 82de62f

Please sign in to comment.