mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
tabula rasa
This commit is contained in:
commit
11a9f3ba50
33 changed files with 1937 additions and 0 deletions
38
crates/midikbd/src/main.rs
Normal file
38
crates/midikbd/src/main.rs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
extern crate clap;
|
||||
extern crate crossterm;
|
||||
extern crate engine;
|
||||
|
||||
type StdResult<T> = Result<T, Box<dyn std::error::Error>>
|
||||
|
||||
pub fn main () -> StdResult<()> {
|
||||
let cli = Cli::parse();
|
||||
let engine = run_jack_engine(move |_: &Client, _: &ProcessScope| {
|
||||
Control::Continue
|
||||
});
|
||||
let app = App::new()
|
||||
}
|
||||
|
||||
pub struct App {
|
||||
sleep: std::time::Duration
|
||||
}
|
||||
|
||||
impl App {
|
||||
fn init () -> Self {
|
||||
Self {
|
||||
sleep: std::time::Duration::from_millis(16)
|
||||
}
|
||||
}
|
||||
fn run (&self) -> StdResult<()> {
|
||||
loop {
|
||||
self.update()?;
|
||||
self.render()?;
|
||||
std::thread::sleep(self.sleep);
|
||||
}
|
||||
}
|
||||
fn update (&self) -> StdResult<()> {
|
||||
}
|
||||
fn render (&self) -> StdResult<()> {
|
||||
use crossterm::*;
|
||||
let (cols, rows) = terminal::size()?;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue