Skip to content

Commit

Permalink
Merge pull request #575 from JakeRoggenbuck/fix-terminal-size-unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeRoggenbuck authored Oct 15, 2024
2 parents ca1cbd2 + fa40595 commit d74546b
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, 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 d74546b

Please sign in to comment.