render

Function render 

Source
pub fn render<'a>(w: impl Write, s: impl Into<StyledStr<'a>>) -> Result<()>
Expand description

Renders a styled string to the given output using termion.

ยงExample

let s = text_style::StyledStr::plain("test").bold();
text_style::termion::render(std::io::stdout(), s)
    .expect("Failed to render string");