Finish stuff up

This commit is contained in:
2025-06-22 12:13:03 -04:00
parent 6e4039bba6
commit 160414819e
5 changed files with 61 additions and 97 deletions

View File

@@ -1,8 +1,8 @@
#![warn(clippy::all, clippy::pedantic)]
use neutuino::prelude::*;
use std::{io, time::Duration};
use std::io::IsTerminal;
use std::{io, time::Duration};
fn print_line_style_reset(string: &str) {
println!("{}{}{}", string, STYLE_RESET, move_cursor_to_column(0));
@@ -38,7 +38,7 @@ fn main() -> io::Result<()> {
COLORS_BG[next(counter)]
));
// q to quit
if input == Event::Key(KeyEvent::Char('q')) {
if input == Event::Key(Key::Char('q'), KeyType::Press, KeyModifiers::none()) {
break;
}
counter = next(counter);