Skip to content

Commit

Permalink
feat(ansi): add NoConceal style attr
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 28, 2024
1 parent 77596eb commit 6f71142
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ansi/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ func (s Style) NoReverse() Style {
return append(s, NoReverseAttr)
}

// NoConceal appends the no conceal style attribute to the style.
func (s Style) NoConceal() Style {
return append(s, NoConcealAttr)
}

// NoStrikethrough appends the no strikethrough style attribute to the style.
func (s Style) NoStrikethrough() Style {
return append(s, NoStrikethroughAttr)
Expand Down Expand Up @@ -192,6 +197,7 @@ const (
NoUnderlineAttr Attr = "24"
NoBlinkAttr Attr = "25"
NoReverseAttr Attr = "27"
NoConcealAttr Attr = "28"
NoStrikethroughAttr Attr = "29"
DefaultForegroundColorAttr Attr = "39"
DefaultBackgroundColorAttr Attr = "49"
Expand Down

0 comments on commit 6f71142

Please sign in to comment.