rustpm 0.2.6

A fast, friendly APT frontend with kernel, desktop, and sources management
1
2
3
4
5
6
7
8
9
10
11
12
pub mod colors;
pub mod table;
pub mod tui;

/// Returns true if we should launch the TUI (stdout is a terminal and not suppressed).
pub fn should_use_tui(no_tui: bool) -> bool {
    if no_tui {
        return false;
    }
    use std::io::IsTerminal;
    std::io::stdout().is_terminal()
}