restruct: 9e

This commit is contained in:
i do not exist 2026-06-28 14:31:32 +03:00
parent 19ab138320
commit a8febbe96f
4 changed files with 20 additions and 23 deletions

View file

@ -7,7 +7,7 @@
pub(crate) const HEADER: &'static str = r#"
~ █▀█▀█ █▀▀█ █ █ ~~~ ~ ~ ~~ ~ ~ ~ ~~ ~ ~ ~ ~
█ █▀ █▀▀▄ ~ v0.4.0, 2026 winter (or is it) ~
█ █▀ █▀▀▄ ~ v0.4.0, 2026 heatwave edition ~
~ ▀ █▀▀█ ▀ ▀ ~ ~~~ ~ ~ ~ ~ ~~~ ~~~ ~ ~~ "#;
#[cfg(feature = "cli")] use clap::{self, Parser, Subcommand};
@ -90,21 +90,16 @@ pub fn main () -> Usually<()> {
Config::watch(|config|{
Exit::run(|exit|{
let state = Jack::new_run("tek", move|jack|{
Ok(App::new(&jack, Arrangement::new(
&jack,
None,
Clock::new(&jack, Some(51.))?,
vec![],
vec![],
vec![],
vec![],
), config, ":menu"))
let clock = Clock::new(&jack, Some(51.))?;
let project = Arrangement::new(&jack, None, clock, vec![], vec![], vec![], vec![]);
let app = App::new(&jack, project, config, ":menu");
Ok(app)
})?;
let keyboard = tui_input(
exit.as_ref(), &state, Duration::from_millis(100)
)?;
let terminal = tui_output(
&mut std::io::stdout(), exit.as_ref(), &state, Duration::from_millis(10)
exit.as_ref(), &state, Duration::from_millis(10), std::io::stdout(),
)?;
Ok(())
})