Skip to content

Commit

Permalink
fix: ANSI background colors not rendered correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Nov 21, 2024
1 parent 425055f commit 24065a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++
}
Expand Down

0 comments on commit 24065a7

Please sign in to comment.