mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-22 20:53:19 +00:00
37 lines
1.1 KiB
Rust
37 lines
1.1 KiB
Rust
//! # [Ratatui] Demo2 example
|
|
//!
|
|
//! The latest version of this example is available in the [examples] folder in the repository.
|
|
//!
|
|
//! Please note that the examples are designed to be run against the `main` branch of the Github
|
|
//! repository. This means that you may not be able to compile with the latest release version on
|
|
//! crates.io, or the one that you have installed locally.
|
|
//!
|
|
//! See the [examples readme] for more information on finding examples that match the version of the
|
|
//! library you are using.
|
|
//!
|
|
//! [Ratatui]: https://github.com/ratatui-org/ratatui
|
|
//! [examples]: https://github.com/ratatui-org/ratatui/blob/main/examples
|
|
//! [examples readme]: https://github.com/ratatui-org/ratatui/blob/main/examples/README.md
|
|
|
|
mod app;
|
|
mod big_text;
|
|
mod colors;
|
|
mod destroy;
|
|
mod errors;
|
|
mod tabs;
|
|
mod term;
|
|
mod theme;
|
|
|
|
pub use app::*;
|
|
use color_eyre::Result;
|
|
pub use colors::*;
|
|
pub use term::*;
|
|
pub use theme::*;
|
|
|
|
fn main() -> Result<()> {
|
|
errors::init_hooks()?;
|
|
let terminal = &mut term::init()?;
|
|
App::new().run(terminal)?;
|
|
term::restore()?;
|
|
Ok(())
|
|
}
|