Skip to content

Commit

Permalink
Merge pull request #26 from r59q/master
Browse files Browse the repository at this point in the history
Allow users to handle terminal size errors
  • Loading branch information
VincentFoulon80 authored Dec 10, 2023
2 parents d56ea01 + 7954742 commit 0995265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
name = "console_engine"
readme = "README.md"
repository = "https://github.com/VincentFoulon80/console_engine"
version = "2.6.0"
version = "2.6.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl ConsoleEngine {

/// Initialize a screen filling the entire terminal with the target FPS
pub fn init_fill(target_fps: u32) -> Result<ConsoleEngine, ErrorKind> {
let size = crossterm::terminal::size().unwrap();
let size = crossterm::terminal::size()?;
ConsoleEngine::init(size.0 as u32, size.1 as u32, target_fps)
}

Expand Down

0 comments on commit 0995265

Please sign in to comment.