turns out anime_telnet requires color continuity across lines

This commit is contained in:
lifning 2021-11-26 19:07:19 -08:00
parent 04dcb36641
commit f01e1d4cd9
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ impl RetroCallbacks for AnsiVideoComponent {
let processed = processor.process(&rgba_img).into_iter().next().unwrap().1;
write!(self.screen, "{}", termion::cursor::Goto(1, 1)).unwrap();
for line in self.encode_frame(&processed).lines() {
write!(self.screen, "{}{}\r\n", line, termion::color::Fg(termion::color::Black)).unwrap();
write!(self.screen, "{}\r\n", line).unwrap();
}
write!(self.screen, "\x1B[0m").unwrap();
self.screen.flush().unwrap();