Skip to content

Commit 24065a7

Browse files
committed
fix: ANSI background colors not rendered correctly
1 parent 425055f commit 24065a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ansi.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ func (p *dispatcher) CsiDispatch(s ansi.CsiSequence) {
180180
p.beginBackground(fill)
181181
i += 3
182182
}
183-
case 100, 101, 102, 103, 104, 105, 106, 107:
184-
p.beginBackground(ansiPalette[v])
183+
case 40, 41, 42, 43, 44, 45, 46, 47, 100, 101, 102, 103, 104, 105, 106, 107:
184+
p.beginBackground(ansiPalette[v-10])
185185
}
186186
i++
187187
}

0 commit comments

Comments
 (0)