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
13
use EnumBitFlags::EnumBitFlags;

#[EnumBitFlags(bits = 8)]
/// Initialization flags for a [`struct@super::TimePicker`].
///
/// Combine values with `|`. `Flags::None` shows hours and minutes in 24-hour form
/// (`HH:MM`).
pub enum Flags {
    /// Show a 12-hour clock with an AM/PM indicator, for example `02:35 PM`.
    AMPM = 0x0001,
    /// Include seconds in the time, for example `14:35:56`.
    Seconds = 0x0002,
}