mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-10-08 18:56:42 +02:00
restruct: 9e
This commit is contained in:
parent
19ab138320
commit
a8febbe96f
4 changed files with 20 additions and 23 deletions
17
src/tek.rs
17
src/tek.rs
|
|
@ -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(())
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue