aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Wortman <ixineeringeverywhere@gmail.com>2017-12-24 22:06:20 -0800
committerAndy Wortman <ixineeringeverywhere@gmail.com>2017-12-24 22:06:20 -0800
commit160df4335dd132dc8bda96d0cec2aea787523563 (patch)
tree13fd1c040327ccf549b1a84bfd36c7a79e899f17
parent2ad6338ffb2c1cf37acd54bd8c2997d051dd02e6 (diff)
adjust line clearing behavior to alleviate flickering
-rw-r--r--src/display/mod.rs2
1 files changed, 1 insertions, 1 deletions
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;