From 53fd00a013cda393055f314458a7bc74b6aff117 Mon Sep 17 00:00:00 2001 From: nate-sys Date: Mon, 5 Sep 2022 14:44:52 +0300 Subject: [PATCH 1/2] fix the z thing --- src/textgen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textgen.rs b/src/textgen.rs index eef5566..40c9cdb 100644 --- a/src/textgen.rs +++ b/src/textgen.rs @@ -75,7 +75,7 @@ impl RawWordSelector { let mut buffer = String::new(); fn is_letter(char: u8) -> bool { - (b'a'..b'z').contains(&char) + (b'a'..=b'z').contains(&char) } loop { From b2ae6d9c92eac6f7404a2491ddf9a66ca604cec9 Mon Sep 17 00:00:00 2001 From: nate-sys Date: Mon, 5 Sep 2022 15:15:44 +0300 Subject: [PATCH 2/2] Reset to the users cursor --- src/textgen.rs | 2 +- src/tui.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/textgen.rs b/src/textgen.rs index 40c9cdb..eef5566 100644 --- a/src/textgen.rs +++ b/src/textgen.rs @@ -75,7 +75,7 @@ impl RawWordSelector { let mut buffer = String::new(); fn is_letter(char: u8) -> bool { - (b'a'..=b'z').contains(&char) + (b'a'..b'z').contains(&char) } loop { diff --git a/src/tui.rs b/src/tui.rs index b906b46..29442fd 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -266,7 +266,7 @@ impl ToipeTui { "{}{}{}", clear::All, cursor::Goto(sizex / 2, sizey / 2), - cursor::BlinkingBar + cursor::Show, )?; self.flush()?; @@ -531,7 +531,7 @@ impl Drop for ToipeTui { self.stdout, "{}{}{}", clear::All, - cursor::SteadyBlock, + cursor::Show, cursor::Goto(1, 1) ) .expect("Could not reset terminal while exiting");