mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-10-08 18:56:42 +02:00
fix: runs, somehow
This commit is contained in:
parent
89f8d073eb
commit
3b1c31c78d
5 changed files with 209 additions and 189 deletions
26
src/tek.rs
26
src/tek.rs
|
|
@ -87,25 +87,15 @@ pub(crate) use tengri::{
|
|||
/// Command-line entrypoint.
|
||||
#[cfg(feature = "cli")]
|
||||
pub fn main () -> Usually<()> {
|
||||
tui_setup_panic();
|
||||
Config::watch(|config|{
|
||||
Exit::run(|exit|{
|
||||
let state = Jack::new_run("tek", move|jack|{
|
||||
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, terminal) = tui_io(
|
||||
exit.as_ref(),
|
||||
&state,
|
||||
Duration::from_millis(100),
|
||||
Duration::from_millis(10),
|
||||
std::io::stdout(),
|
||||
)?;
|
||||
Ok(())
|
||||
})
|
||||
})?;
|
||||
Ok(())
|
||||
tui_run_main(Jack::new_run("tek", move|jack|{
|
||||
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)
|
||||
})?)
|
||||
}).map(|_|())
|
||||
}
|
||||
|
||||
tui_keys!(|self: App, input| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue