5 releases (3 breaking)

0.4.1 Jan 30, 2024
0.4.0 Jan 30, 2024
0.3.0 Jan 27, 2024
0.2.0 May 18, 2023
0.1.0 Jun 22, 2022

#389 in Command-line interface

Download history 2/week @ 2024-04-27 14/week @ 2024-05-11 43/week @ 2024-05-18 37/week @ 2024-05-25 39/week @ 2024-06-01 61/week @ 2024-06-08 171/week @ 2024-06-15 11/week @ 2024-06-22 35/week @ 2024-06-29 33/week @ 2024-07-06 17/week @ 2024-07-13 19/week @ 2024-07-20 36/week @ 2024-07-27 40/week @ 2024-08-03

125 downloads per month
Used in sos

MIT/Apache

13KB
286 lines

Terminal Banner

Tiny Rust library for rendering a boxed banner at the current terminal width wrapping each paragraph of text.

See the examples and the API docs.

License

MIT or Apache-2.0


lib.rs:

Tiny utility to render a boxed banner at the width of the terminal.

Use the color feature to enable support for terminal colors, see the examples for usage.

use terminal_banner::Banner;
let banner = Banner::new()
    .text("LIPSUM".into())
    .text("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.".into())
    .render();
println!("{}", banner);

Dependencies

~3–11MB
~116K SLoC