term: collect keys

This commit is contained in:
facile pop culture reference 2026-06-27 22:09:29 +03:00
parent 80b086603e
commit f7b05e95fa
3 changed files with 4 additions and 2 deletions

View file

@ -49,8 +49,6 @@ pub use ::dizzle::{Usually, Perhaps, impl_default};
#[cfg(feature = "text")] pub mod text; #[cfg(feature = "text")] pub mod text;
/// Terminal output. /// Terminal output.
#[cfg(feature = "term")] pub mod term; #[cfg(feature = "term")] pub mod term;
/// Terminal keyboard input.
#[cfg(feature = "term")] pub mod keys;
/// Define a trait an implement it for various mutation-enabled wrapper types. */ /// Define a trait an implement it for various mutation-enabled wrapper types. */
#[macro_export] macro_rules! flex_trait_mut ( #[macro_export] macro_rules! flex_trait_mut (

View file

@ -543,3 +543,7 @@ use self::colors::*; mod colors {
pub const fn tui_title_fg (f: bool) -> Color { if f { tui_ti1() } else { tui_ti2() } } pub const fn tui_title_fg (f: bool) -> Color { if f { tui_ti1() } else { tui_ti2() } }
pub const fn tui_yellow () -> Color { Color::Rgb(255,255,0) } pub const fn tui_yellow () -> Color { Color::Rgb(255,255,0) }
} }
/// Terminal keyboard input.
#[cfg(feature = "term")] pub mod keys;
#[cfg(feature = "term")] pub use self::keys::*;