Skip to content

Commit

Permalink
strikethrough
Browse files Browse the repository at this point in the history
  • Loading branch information
cswank committed Oct 25, 2019
1 parent e639eca commit 1a5b952
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions attribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const (

// Text style attributes.
const (
AttrBold Attribute = Attribute(termbox.AttrBold)
AttrUnderline = Attribute(termbox.AttrUnderline)
AttrReverse = Attribute(termbox.AttrReverse)
AttrBold Attribute = Attribute(termbox.AttrBold)
AttrUnderline = Attribute(termbox.AttrUnderline)
AttrReverse = Attribute(termbox.AttrReverse)
AttrStrikeThrough = Attribute(9)
)
2 changes: 2 additions & 0 deletions escape.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ func (ei *escapeInterpreter) output256() error {
ei.curFgColor |= AttrUnderline
case p == 7:
ei.curFgColor |= AttrReverse
case p == 9:
ei.curFgColor |= AttrStrikeThrough

}
}
Expand Down

0 comments on commit 1a5b952

Please sign in to comment.