requestForegroundColor static method

Cmd requestForegroundColor()

Requests the terminal's foreground color.

This sends OSC 10 ? to the terminal. The terminal will respond with an OSC 10 sequence which is decoded into a ForegroundColorMsg.

Implementation

static Cmd requestForegroundColor() =>
    Cmd(() async => WriteRawMsg(term_ansi.Ansi.requestForegroundColor));