requestCoreColors method

Cmd requestCoreColors({
  1. bool includeCursor = true,
})

Requests foreground/background reports and optionally the cursor color.

Implementation

Cmd requestCoreColors({bool includeCursor = true}) {
  final commands = <Cmd>[
    Cmd.requestForegroundColor(),
    Cmd.requestBackgroundColor(),
    if (includeCursor) Cmd.requestCursorColor(),
  ];
  return Cmd.batch(commands);
}