diff --git a/ansi.go b/ansi.go index 5e625e54..d2e75eba 100644 --- a/ansi.go +++ b/ansi.go @@ -180,8 +180,8 @@ func (p *dispatcher) CsiDispatch(s ansi.CsiSequence) { p.beginBackground(fill) i += 3 } - case 100, 101, 102, 103, 104, 105, 106, 107: - p.beginBackground(ansiPalette[v]) + case 40, 41, 42, 43, 44, 45, 46, 47, 100, 101, 102, 103, 104, 105, 106, 107: + p.beginBackground(ansiPalette[v-10]) } i++ }