resizeControlSequence static method

String resizeControlSequence({
  1. required int width,
  2. required int height,
})

Encodes a socket-host resize control sequence.

Clients should emit this whenever their viewport changes so the runtime receives WindowSizeMsg updates.

Implementation

static String resizeControlSequence({
  required int width,
  required int height,
}) => '\x1b]9999;$width;$height\x07';