dinglebit_terminal/
lib.rs

1//! Utilities for interacting with a terminal.
2//!
3//! The most common use for this package is to style a string to
4//! output to the terminal.
5//!
6//! ```
7//! use dinglebit_terminal::style;
8//! fn main() {
9//!     let s = style!("{}, {}!", "Hello", "world")
10//!                 .black()
11//!                 .underline()
12//!                 .to_string();
13//!     assert_eq!(s, "\x1b[30;4mHello, world!\x1b[0m");
14//! }
15//! ```
16//!
17//! You can apply foreground and background colors as well as various
18//! attributes like bold, itlic, underline, etc.
19
20pub mod consts;
21
22#[macro_use]
23pub mod escape_sequence;
24
25#[macro_use]
26pub mod style;