appcui 0.5.1

A feature-rich and cross-platform TUI/CUI framework for Rust, enabling modern terminal-based applications on Windows, Linux, and macOS. Includes built-in UI components like buttons, menus, list views, tree views, checkboxes, and more. Perfect for building fast and interactive CLI tools and text-based interfaces.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[repr(u8)]
#[derive(Copy,Clone,PartialEq,Eq)]
/// Visual style of a [`super::ToggleButton`].
///
/// `Normal` uses the themed button look; `Underlined` emphasizes the caption with
/// an underline.
pub enum Type {
    /// Themed toggle that looks like a regular button, for example `[ Bold ]`.
    Normal,
    /// Caption with an underline to show the toggled state, for example `Bold` / `B̲o̲l̲d̲`.
    Underlined,
}