Secure the cockpit
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Isaac Mills 2025-07-22 16:19:02 -06:00
parent c3f27a7f94
commit 2cdd3aa886
Signed by: fnmain
GPG key ID: B67D7410F33A0F61
6 changed files with 270 additions and 5 deletions

View file

@ -8,7 +8,7 @@ fn main() {
let mut app = App::new();
loop {
terminal.draw(|frame| app.draw(frame));
terminal.draw(|frame| app.draw(frame)).unwrap();
if event::poll(Duration::from_secs(0)).unwrap() {
match event::read().unwrap() {
@ -24,6 +24,10 @@ fn main() {
code: event::KeyCode::Right,
..
}) => app.next_tab(),
event::Event::Key(event::KeyEvent {
code: event::KeyCode::Char(c),
..
}) => app.add_char_to_number_guess(c),
_ => {}
}
}