pub mod format; pub mod im; pub mod items; pub mod rm; #[derive(Clone, Debug)] pub struct TerminalInfo { pub luma: Option, } impl TerminalInfo { pub fn is_dark(&self) -> bool { self.luma.unwrap_or_default() <= 0.6 } }