process-terminal 0.1.7

Terminal manager for displaying outputs/errors of processes launched from rust code.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use process_terminal::{tprintln, with_exit_callback};

fn main() {
    with_exit_callback(|| {
        println!("Exit callback called!");
    });

    tprintln!("Press Ctrl+C to exit the program.");

    loop {
        std::thread::sleep(std::time::Duration::from_secs(1));
    }
}