Table of Contents

Method Prompt

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

Prompt(IApplication, string, Attribute?, out Attribute)

Open a Dialog with two ColorPicker or ColorPicker16, based on the Force16Colors is false or true, respectively, for Foreground and Background colors.

public static bool Prompt(IApplication app, string title, Attribute? currentAttribute, out Attribute newAttribute)

Parameters

app IApplication

The IApplication instance ot use.

title string

The title to show in the dialog.

currentAttribute Attribute?

The current attribute used.

newAttribute Attribute

The new attribute.

Returns

bool

true if a new color was accepted, otherwise false.