From 567c8303bf708bcb5822d8126a4d8654952cbfe3 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 18 Feb 2020 00:45:24 +0900 Subject: [PATCH] Update ANSI processor to handle "rmso" and "rmul" Fix #1877 --- src/ansi.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ansi.go b/src/ansi.go index c31a4f4..b5b3a20 100644 --- a/src/ansi.go +++ b/src/ansi.go @@ -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: