quadraui 0.6.0

Cross-platform Rust UI toolkit: write one AppLogic and run it unmodified on TUI, GTK4 (Linux), macOS, and Windows backends
Documentation
//! `ChatController` demo on the TUI runner.
//!
//! Demonstrates a self-contained chat overlay backed by `ChatController`:
//! scrollable transcript, alternating role colouring, multi-line input with
//! history navigation, spinner while "thinking", and a status strip. The GTK
//! twin (`gtk_chat.rs`) uses the identical `ChatDemo` — only the runner
//! differs.
//!
//! ```sh
//! cargo run --example tui_chat --features tui
//! ```
//! Controls:
//! - Type any text; `Enter` submits it.
//! - `Shift+Enter` (or `Alt+Enter` as a fallback) inserts a newline.
//! - Click the Send/Stop segment at the right of the input row to submit
//!   or interrupt the simulated reply with the mouse.
//! - `↑` / `↓` — history navigation (when cursor is on the first/last line).
//! - `PageUp` / `PageDown` — scroll the transcript.
//! - `Esc` — clear the input, or quit when the input is already empty.
//! - `q` / `Ctrl+C` — quit immediately.

#[path = "common/mod.rs"]
mod common;

fn main() -> std::io::Result<()> {
    quadraui::tui::run(common::ChatDemo::new())
}