Crate ziyy

Source
Expand description

A Convenient Library for Styling Terminal Output.

§Example

use ziyy::style;
let text = style("[b][c:yellow]Hello World!");
assert_eq!(text, "\x1b[1m\x1b[33mHello World!\x1b[0m")

Functions§

style
Styles your text using escape sequence.
template
Creates a new Template for styling text.