From 75b398ed87c4be384b1fcd614fbcfcf49d297bc0 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 24 Dec 2017 22:06:20 -0800 Subject: adjust line clearing behavior to alleviate flickering --- src/display/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/display/mod.rs b/src/display/mod.rs index 37de481..e747eec 100644 --- a/src/display/mod.rs +++ b/src/display/mod.rs @@ -561,7 +561,7 @@ pub fn paint(tweeter: &::tw::TwitterCache, display_info: &mut DisplayInfo) -> Re } }; for line in to_draw { - print!("{}{}{}", cursor::Goto(1, height - h), clear::CurrentLine, line); + print!("{}{}{}", cursor::Goto(1, height - h), line, clear::UntilNewline); h = h + 1; if h >= height { break; -- cgit v1.1