1use std::io::{self, Write};
2use Interface::interfaces::dmx_output_loop;
3
4mod commandline;
5
6
7fn main() -> io::Result<()> {
9
10 let artnet_handle = std::thread::spawn(|| {
11 dmx_output_loop().expect("artnet loop failed");
12 });
13
14
15 loop {
16 print!("> ");
17 io::stdout().flush()?;
18
19 let mut input = String::new();
20 io::stdin().read_line(&mut input).expect("Failed to read line");
21
22 let input = input.trim().to_string();
23
24 commandline::parse_command(input);
25 }
26
27 artnet_handle.join().unwrap();
28 println!("Hello, world!");
29}