mirror of
https://github.com/Xyverle/neutuino.git
synced 2026-06-26 23:53:13 -04:00
Finish stuff up
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user