1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// lib.rs semtext crate.
//
// Copyright (c) 2020 Douglas Lau
//
//! Semtext is a Rust library for building text user interfaces, or **TUI**s.
//!
//! ## Example
//! ```no_run
//! use semtext::{grid_area, input::Action, widget::Label, Screen, Widget};
//!
//! async fn async_main() -> Result<(), Box<dyn std::error::Error>> {
//! let mut screen = Screen::new()?;
//! let a = Label::new("Hello!").into_button();
//! let grid = grid_area!(
//! [. . .]
//! [. a .]
//! [. . .]
//! )?;
//! while screen.step(&grid).await? != Action::Quit() {}
//! Ok(())
//! }
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! futures::executor::block_on(async_main())
//! }
//! ```
pub use crateError;
pub use crateResult;
pub use crateScreen;
pub use crateWidget;