Skip to content

Commit

Permalink
Add terminal size default
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeRoggenbuck committed Oct 15, 2024
1 parent ca1cbd2 commit a176409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ impl Checker for Daemon {
self.graph = self.grapher.update_one(&mut self.grapher.vals.clone());
}

let (term_width, _term_height) = termion::terminal_size().unwrap();
let (term_width, _term_height) = termion::terminal_size().unwrap_or(80);

// Render two sections of the output
// Rendering before screen is cleared reduces the time between clear and print
Expand Down

0 comments on commit a176409

Please sign in to comment.