Crate billboard

source ·
Expand description

Billboard

Display informational boxes in the terminal.

Example

Your Cargo.toml should include billboard as a dependency

[dependencies]
billboard = "0.2"
use billboard::Billboard;

fn main() {
  Billboard::default().eprint("Hello, World!");
}

More examples can be found here.

Acknowledgements

This library was heavily inspired by boxen, but has no official association with that project. billboard

The billboard crate provides a convenient, high-level API for creating billboards in the terminal.

Structs

Billboard is a customizable data structure that will pretty print content separated by newlines (\n).
BorderComponents defines the Strings to use when dislaying the corners and sides of a Billboard.
Config holds the configuration of a Billboard and determines how it should be displayed

Enums

Defines the alignment for padding operations.
A terminal color.
Different styles for the border of a Billboard.