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
14
15
/// How an orthogonal polyline chooses between horizontal and vertical segments.
#[derive(Copy, Clone, Eq, PartialEq, Debug, Default)]
pub enum OrthogonalDirection {
    /// Draw the horizontal run first, then the vertical, for example `──┐` / `  │`.
    HorizontalFirst,
    /// Draw the vertical run first, then the horizontal, for example `│` / `└──`.
    VerticalFirst,
    /// Go horizontally until the midpoint, then vertically, then horizontally again.
    HorizontalUntilMiddle,
    /// Go vertically until the midpoint, then horizontally, then vertically again.
    VerticalUntilMiddle,
    /// Pick a routing automatically from the start and end points.
    #[default]
    Auto,
}