Skip to main content

resize_frame

Function resize_frame 

Source
pub fn resize_frame(cols: u16, rows: u16) -> Result<String, Error>
Expand description

A resize control frame, validated before it leaves this function.

The one control frame the platform speaks, built here and nowhere else. The validation call is not redundant with construction: it is the guard that stays in the path if this function grows a second frame shape, and it is the same check run_shell applies to anything it sends — so a frame that would be injected into the shell as keystrokes (sharp edge 1) cannot be produced by this crate at all.