diff --git a/dsp/tty/ttyraster.c b/dsp/tty/ttyraster.c index 74bde42cf..13f89139f 100644 --- a/dsp/tty/ttyraster.c +++ b/dsp/tty/ttyraster.c @@ -775,7 +775,10 @@ char *ttyraster(char *v, const struct TtyRgb *c, size_t yn, size_t xn, struct Glyph glyph; struct TtyRgb chun[4], lastchunk[4]; for (y = 0; y < yn; y += 2, c += xn) { - if (y) v = stpcpy(v, "\e[0m\r\n"); + if (y) { + v = stpcpy(v, "\e[0m\r\n"); + v = setbgfg(v, bg, fg); + } for (x = 0; x < xn; x += 2, c += 2) { CopyChunk(chun, c, xn); if (ttyquant()->alg == kTtyQuantTrue) {