[][src]Function text_style::termion::render

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

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");