//! # Flux TUI
//!
//! Flux TUI is a library which tries to unify both rendering Terminal UIs and event handling
//!
//!
//! # Main features:
//! - Hierachical reference counted structure
//! - Events get automatically delegated to the focused child and if unhandled bubble up
//! - Premade existing implementations of well-known components (still getting improved tho)
//! - Lightweight and relies only on few dependencies
//!
//! # Getting started:
//!
//! ```rust
//! use flux_tui::tui::Tui;
//! use flux_tui::window::WindowRef;
//!
//! // Construct your Window implementation here
//! let control: WindowRef = todo!();
//! let mut tui = Tui::new(control.clone()).unwrap();
//! tui.render().unwrap();
//! while let Ok(()) = tui.handle_next_event() {
//! tui.render().unwrap();
//! }
//!
//! ```