requestModeReport static method

Cmd requestModeReport(
  1. int mode, {
  2. bool private = true,
})

Request the terminal to report the current state of a terminal mode.

When UV input decoding is enabled, xterm-style mode replies such as CSI ? 2004 ; 1 $ y are translated to ModeReportMsg.

Implementation

static Cmd requestModeReport(int mode, {bool private = true}) =>
    writeRaw('\x1b[${private ? '?' : ''}$mode\$p');