Table of Contents

Method Detect

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

Detect(Action<Color?, Color?>)

Sends OSC 10 and OSC 11 queries to detect the terminal's default foreground and background colors. Results are delivered asynchronously via the resultCallback.

public void Detect(Action<Color?, Color?> resultCallback)

Parameters

resultCallback Action<Color?, Color?>

Called when detection is complete. Parameters are (foreground, background), either of which may be null if the terminal did not respond.