improvements

This commit is contained in:
2025-01-31 14:39:32 +01:00
parent a35f420b68
commit 52eb3cc490
4 changed files with 53 additions and 44 deletions
+1 -2
View File
@@ -100,7 +100,7 @@ pub fn str_size(s: &str) -> (u16, u16) {
///
/// # Returns
/// A `Console` instance wrapped in a `Result`.
pub fn init<'a>(mouse: bool) -> crate::Result<crate::Console<'a>> {
pub fn init<'a>(mouse: bool) -> crate::Result<crate::Console> {
crossterm::terminal::enable_raw_mode()?;
clear()?;
hide_cursor()?;
@@ -112,7 +112,6 @@ pub fn init<'a>(mouse: bool) -> crate::Result<crate::Console<'a>> {
width,
height,
mouse,
handle: None,
mouse_position: None,
})
}