Skip to main content

Module inband

Module inband 

Source
Expand description

In-band terminal resize reports for DEC private mode 2048.

§Category

This module encodes a terminal-to-application resize notification as an XTWINOPS-shaped CSI t sequence carrying cell and pixel dimensions.

§CSI format

The emitted format is ESC [ 48 ; height_cells ; width_cells ; height_px ; width_px t. Dimensions are decimal integers and are written exactly as provided.

§Mode interaction

Applications request these reports by enabling Mode::IN_BAND_RESIZE, DEC private mode 2048. This module only encodes the report payload.

Functions§

write_in_band_resize
Encode an in-band resize report as ESC [ 48 ; <height_cells> ; <width_cells> ; <height_pixels> ; <width_pixels> t.