fn flatten(buf: &Buffer, area: Rect) -> Vec<String>Expand description
One ANSI string per buffer line, coalescing runs that share a style.
Per cell would be correct and unreadable on the wire: a 200-column row would
carry 200 escapes for a line that changes colour twice. Term::draw writes
whatever it is handed, so the coalescing has to happen here.