Skip to main content

render_box

Function render_box 

Source
pub fn render_box(
    lines: &[String],
    branches: &[String],
    term_width: usize,
    color: bool,
) -> String
Expand description

Renders the box, or an empty string when there is nothing to show. term_width caps the box width; branches are highlighted when they appear as words.