Skip to content

Commit

Permalink
Update ANSI processor to handle "rmso" and "rmul"
Browse files Browse the repository at this point in the history
Fix #1877
  • Loading branch information
junegunn committed Feb 17, 2020
1 parent 2a60edc commit 567c830
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ansi.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ func interpretCode(ansiCode string, prevState *ansiState) *ansiState {
state.attr = state.attr | tui.Blink
case 7:
state.attr = state.attr | tui.Reverse
case 23: // tput rmso
state.attr = state.attr &^ tui.Italic
case 24: // tput rmul
state.attr = state.attr &^ tui.Underline
case 0:
init()
default:
Expand Down

0 comments on commit 567c830

Please sign in to comment.