AppCUI is a fast, cross-platform console and text-based user interface (CUI/TUI) framework for Rust. It combines a low-level console engine for input (mouse, ke
AppCUI is a fast, cross-platform console and text-based user interface (CUI/TUI) framework for Rust. It combines a low-level console engine for input (mouse, ke
AppCUI-rs
⯈ -
AppCUI-rs is a fast, cross-platform Rust library for building modern, text-based user interfaces (TUIs) with rich widgets, themes, and full Unicode support—an alternative to ncurses and other terminal UI frameworks.
multiple out-of-the-box controls (buttons, labels, text boxes, check boxes, radio buttons, list views, tree views, buffer view, hexview, progress bar, graph view, combo boxes, date/time pickers, color pickers, tabs, accordions, etc.).
powerful layout system that allows you to position controls using absolute coordinates, relative coordinates, docking, alignment, anchors, or pivot positioning (see more here)
menus and toolbars
multi-platform support (Windows via API and virtual terminal, Linux via ncurses, macOS via termios)
multi-threading support to allow background tasks
timers
mouse support
clipboard support
color themes
support for Unicode characters
predefined dialogs (message box, input box, color picker, save & open dialogs, folder navigator, etc.)
true-color support (24 bits per pixel) for terminals that support it.
Out-of-the-box controls and widgets
AppCUI-rs ships with a rich set of controls and widgets for building terminal user interfaces. The full list of stock controls is documented here.
Basic controls
Button — clickable action trigger
ToggleButton — button with pressed/unpressed state
Label — static, non-interactive text
CheckBox — toggle on/off
RadioBox — mutually exclusive choice within a group
use appcui::prelude::*;
fnmain() ->Result {
App::new()
.window(|| {
letmut win = window!("Test,a:c,w:30,h:9");
win.add(label!("'Hello World !',a:c,w:13,h:1"));
win
})
.run()
}
Alternatively, you can use the frame-based or input-based mode to create applications that can access the screen directly (without needing the entire UI architecture):