Skip to main content

parse_responses

Function parse_responses 

Source
pub fn parse_responses(buf: &[u8]) -> TermGraphics
Expand description

Parse a batch of terminal query responses (raw bytes) into capabilities. Looks for: Kitty ESC _ G ... ; OK ESC \, a DA1 ESC [ ? <attrs> c whose attribute list contains 4 (Sixel), and a cell-size report ESC [ 6 ; <h> ; <w> t.