Skip to content
Myr

Respect ANSI codes to reset properties

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix #3441

authored by Junegunn Choi · committed by Junegunn Choi · parent eb4bbf3 · Browse files · 1 file+9 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−0 removed

  • other:+9 added−0 removed

1 file+9 added−0 removed

modified:src/ansi.go+9 added
379 unmodified lines
380 case 7:381 state.attr = state.attr | tui.Reverse382 case 9:383 state.attr = state.attr | tui.StrikeThrough384 case 22:385 state.attr = state.attr &^ tui.Bold386 state.attr = state.attr &^ tui.Dim387 case 23: // tput rmso388 state.attr = state.attr &^ tui.Italic389 case 24: // tput rmul390 state.attr = state.attr &^ tui.Underline391 case 25:392 state.attr = state.attr &^ tui.Blink393 case 27:394 state.attr = state.attr &^ tui.Reverse395 case 29:396 state.attr = state.attr &^ tui.StrikeThrough397 case 0:398 state.fg = -1399 state.bg = -1400 state.attr = 0
42 unmodified lines