mirror of
https://github.com/BigJk/crt.git
synced 2026-02-06 10:47:25 +00:00
Fix missing bg setting for ANSI256 colors.
This commit is contained in:
parent
2c21fde141
commit
52a54cbfc8
9
crt.go
9
crt.go
@ -342,6 +342,15 @@ func (g *Window) handleSGR(sgr any) {
|
||||
colorCache[seq.Id] = col
|
||||
}
|
||||
}
|
||||
case SGRBgColor:
|
||||
if val, ok := colorCache[seq.Id]; ok {
|
||||
g.curBg = val
|
||||
} else {
|
||||
if col, err := colorful.Hex(termenv.ANSI256Color(seq.Id).String()); err == nil {
|
||||
g.curBg = col
|
||||
colorCache[seq.Id] = col
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user