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