katui-rt 0.0.0

The katui runtime: the tty transport, terminal lifecycle and loops
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// printing is this binary's whole job
#![allow(clippy::print_stdout, clippy::print_stderr)]

#[cfg(unix)]
fn main() {
    let caps = katui_rt::tty::probe_default();
    print!("{}", katui_rt::info::card(&caps));
}

#[cfg(not(unix))]
fn main() {
    println!("katui-info needs a controlling terminal");
}