From f01e1d4cd90da21b6cb656cfb49d0f1f6b66ae39 Mon Sep 17 00:00:00 2001 From: lifning <> Date: Fri, 26 Nov 2021 19:07:19 -0800 Subject: [PATCH] turns out anime_telnet requires color continuity across lines --- src/ansi_video/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansi_video/mod.rs b/src/ansi_video/mod.rs index e0aa8b7..701b45d 100644 --- a/src/ansi_video/mod.rs +++ b/src/ansi_video/mod.rs @@ -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();