Skip to content

Commit

Permalink
Remove clear::All to fix screen flicker
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Feb 22, 2020
1 parent 6de6561 commit 507d22b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ use std::time::Duration;

use regex::Regex;
use termion::color::{Bg, Fg};
use termion::cursor;
use termion::style::Reset;
use termion::{clear, cursor};

use crate::model::{Application, MenuItem, Screen, ScrollAnchor, StreamWrapper};
use crate::theme::Theme;
Expand All @@ -38,7 +38,7 @@ const BARS: &[&str] = &[

impl Application {
pub fn render(&self, theme: &Theme) -> String {
let mut string = format!("{}{}{}", clear::All, cursor::Goto(1, 1), Reset);
let mut string = format!("{}{}", cursor::Goto(1, 1), Reset);

match self.screen {
Screen::Main => {
Expand Down

0 comments on commit 507d22b

Please sign in to comment.