Crate tuitui

Crate tuitui 

Source
Expand description

§tuitui 🐧

A friendly TUI framework for building terminal interfaces faster.

§Features

  • Low boilerplate - Focus on your app, not framework code
  • Batteries included - ASCII art, widgets, and more built-in
  • Fluent API - Intuitive method chaining
  • Composable - Easy to build custom components

§Quick Start

use tuitui::prelude::*;
 
struct MyApp;
 
impl App for MyApp {
    fn display(&mut self, ui: &mut Ui) {
        ui.heading("Hello tuitui! 🐧");
    }
 
    fn update(&mut self) -> bool {
        false    
    }
 
    fn get_fps(&self) -> u32 {
        30    
    }
}
 
fn main() {
    AppRuntime::new().run(MyApp);
}

Modules§

components
macros
prelude

Macros§

span
text