Skip to content

Commit

Permalink
Merge branch 'master' of github.com:TheEmeraldBee/ascii-forge
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEmeraldBee committed Feb 26, 2024
2 parents c2970e5 + f760a55 commit 2054793
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use ascii_forge::prelude::*;

fn main() -> io::Result<()> {
// Will init the window for you, handling all required procedures.
let mut window = Window::<Input>::init()?;
let mut window = Window::init()?;

// Ask the system to handle panics for us.
handle_panics();
Expand All @@ -56,9 +56,6 @@ fn main() -> io::Result<()> {
break;
}
}

// Crucial to call before exiting the program, as otherwise you will not leave the alternate screen.
window.restore()
}
```

Expand Down

0 comments on commit 2054793

Please sign in to comment.