Table of Contents

Method Prompt

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Prompt(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(string title, Attribute? currentAttribute, out Attribute newAttribute)

Parameters

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.