Skip to content

Commit

Permalink
refactor(ansi)!: remove NoBold style attribute (#344)
Browse files Browse the repository at this point in the history
Supersedes: charmbracelet/sequin#43
Supersedes: #309
  • Loading branch information
aymanbagabas authored Jan 27, 2025
1 parent 7a7803a commit dd9e10b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion ansi/sgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ var attrStrings = map[int]string{
ReverseAttr: "7",
ConcealAttr: "8",
StrikethroughAttr: "9",
NoBoldAttr: "21",
NormalIntensityAttr: "22",
NoItalicAttr: "23",
NoUnderlineAttr: "24",
Expand Down
7 changes: 0 additions & 7 deletions ansi/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ func (s Style) Strikethrough() Style {
return append(s, strikethroughAttr)
}

// NoBold appends the no bold style attribute to the style.
func (s Style) NoBold() Style {
return append(s, noBoldAttr)
}

// NormalIntensity appends the normal intensity style attribute to the style.
func (s Style) NormalIntensity() Style {
return append(s, normalIntensityAttr)
Expand Down Expand Up @@ -236,7 +231,6 @@ const (
ReverseAttr Attr = 7
ConcealAttr Attr = 8
StrikethroughAttr Attr = 9
NoBoldAttr Attr = 21 // Some terminals treat this as double underline.
NormalIntensityAttr Attr = 22
NoItalicAttr Attr = 23
NoUnderlineAttr Attr = 24
Expand Down Expand Up @@ -298,7 +292,6 @@ const (
reverseAttr = "7"
concealAttr = "8"
strikethroughAttr = "9"
noBoldAttr = "21"
normalIntensityAttr = "22"
noItalicAttr = "23"
noUnderlineAttr = "24"
Expand Down

0 comments on commit dd9e10b

Please sign in to comment.