Skip to main content

write_grid

Function write_grid 

Source
pub fn write_grid<W: Write>(
    out: &mut W,
    grid: &[Vec<Cell>],
    color: bool,
) -> Result<()>
Expand description

Write grid to out. When color is true, emit truecolor SGR for fg (and bg, for half-block cells); otherwise emit just the characters. One line per row, reset (\x1b[0m) before each newline when colored.