use process_terminal::{
add_process, tprintln, utils::create_printing_process, KeyCode, MessageSettings,
ProcessSettings, ScrollSettings,
};
fn main() {
tprintln!("Starting...");
std::thread::sleep(std::time::Duration::from_secs(2));
let process_foo = create_printing_process([" helloooohelloooohelloooohelloooohelloooohelloooohelloooohelloooohelloooo", "world", "foo", "bar"], 0.2, 50);
add_process(
"Foo",
process_foo,
ProcessSettings::new_with_scroll(
MessageSettings::Output,
ScrollSettings::enable(KeyCode::Left, KeyCode::Right),
),
)
.unwrap();
loop {
std::thread::sleep(std::time::Duration::from_secs(1));
}
}