Fix release-mode segfault on *nix + add *nix alt support

This commit is contained in:
2025-08-06 07:40:18 -04:00
parent 0c0d5f15ef
commit df149ddfc8
6 changed files with 93 additions and 146 deletions

View File

@@ -14,7 +14,7 @@ fn main() -> io::Result<()> {
let all_styles = format!("{STYLE_BOLD}{STYLE_ITALIC}{STYLE_UNDERLINE}");
enable_ansi()?;
let _raw_terminal = RawModeHandler::new()?;
enable_raw_mode()?;
println!("q to quit{}", move_cursor_to_column(0));
let next = |x: usize| (x + 1) % COLORS_FG.len();
@@ -43,5 +43,6 @@ fn main() -> io::Result<()> {
}
counter = next(counter);
}
disable_raw_mode()?;
Ok(())
}