mirror of
https://github.com/ratatui/ratatui.git
synced 2025-10-02 15:25:54 +00:00

big_text.rs was a copy of the code from tui-big-text and was getting gradually out of sync with the original crate. It was also rendering something a bit different than the Ratatui logo. This commit replaces the big_text.rs file with a much smaller string representation of the Ratatui logo. 
44 lines
1.2 KiB
Rust
44 lines
1.2 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
|
|
|
|
#![allow(
|
|
clippy::missing_errors_doc,
|
|
clippy::module_name_repetitions,
|
|
clippy::must_use_candidate
|
|
)]
|
|
|
|
mod app;
|
|
mod colors;
|
|
mod destroy;
|
|
mod errors;
|
|
mod tabs;
|
|
mod term;
|
|
mod theme;
|
|
|
|
use color_eyre::Result;
|
|
|
|
pub use self::{
|
|
colors::{color_from_oklab, RgbSwatch},
|
|
theme::THEME,
|
|
};
|
|
|
|
fn main() -> Result<()> {
|
|
errors::init_hooks()?;
|
|
let terminal = &mut term::init()?;
|
|
app::run(terminal)?;
|
|
term::restore()?;
|
|
Ok(())
|
|
}
|