Crate tooey

Source
Expand description

§Tooey

§The barebones no-std TUI library.

For a quick example that you can locally test on your machine, add tooey to your crate with the std feature (the standard library is not included by default).

tooey = { version = "0.7", features = ["std"] }

For embedded users, you will have to implement displaying Tooey’s characters yourself.

*Including the stdlib does not add additional features, but it allows Tooey to implement its traits for stdlib types.

use tooey::types::Terminal;
use tooey::types::ColourChar;

use tooey::objects::ColourPrompt;

use std::io::stdout;

let mut terminal: Terminal<ColourChar> = Terminal::new(30, 20);

terminal.push_object(ColourPrompt::new("Hello world!"));

terminal.frame();

#[cfg(feature="std")]
terminal.draw(stdout()).expect("Failed to draw the terminal :(");

Modules§

objects
Tooey’s premade objects, ready for use in your projects.
types
These are the types and traits provided by Tooey for users