Skip to main content

serialize_row

Function serialize_row 

Source
pub fn serialize_row(row: &[Cell]) -> Vec<u8> 
Expand description

Serialise a single row of cells into ANSI bytes without any cursor positioning. Used by the scrollback-push path (write row to stdout at the current cursor, then let \n advance). Skips continuation cells; closes with \x1b[0m iff any SGR was emitted so subsequent writes start from a clean state.