Skip to main content

Crate rich_art

Crate rich_art 

Source
Expand description

§rich-art

ASCII-art renderables for the rich terminal library — currently FIGlet-style text banners (in the spirit of figlet(6) / pyfiglet).

This crate is not a port of anything upstream. rich itself has no banner support, so this is a local feature and lives outside the faithful mirror (see AGENTS.md). It depends only on rich — for the Renderable trait — so it can be lifted into its own repository unchanged.

use rich::Console;
use rich_art::Figlet;

let console = Console::builder().build();
console.print(&Figlet::new("Hello"));

A banner is a normal renderable, so it composes with the rest of rich — wrap it in a Panel, style it, export it to SVG, and so on.

Re-exports§

pub use crate::figlet::FigletFont;
pub use crate::figlet::FontError;
pub use crate::figlet::Justify;

Modules§

figlet
FIGlet-style text banners.

Structs§

Figlet
A block of text rendered as a FIGlet banner.