Update ANSI processor to handle "rmso" and "rmul"

Fix #1877
This commit is contained in:
Junegunn Choi 2020-02-18 00:45:24 +09:00
parent 2a60edcd52
commit 567c8303bf
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -243,6 +243,10 @@ func interpretCode(ansiCode string, prevState *ansiState) *ansiState {
state.attr = state.attr | tui.Blink state.attr = state.attr | tui.Blink
case 7: case 7:
state.attr = state.attr | tui.Reverse 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: case 0:
init() init()
default: default: