in src/superconsole.rs [140:151]
fn render_with_mode(&mut self, state: &State, mode: DrawMode) -> anyhow::Result<()> {
// TODO(cjhopman): We may need to try to keep each write call to be under the pipe buffer
// size so it can be completed in a single syscall otherwise we might see a partially
// rendered frame.
// We remove the last line as we always have a blank final line in our output.
let size = self.size()?.saturating_sub(1, Direction::Vertical);
let mut buffer = Vec::new();
self.render_general(&mut buffer, state, mode, size)?;
self.output.output(buffer)
}