Table of Contents

Class CommandLineBuilder

Namespace
MiniTui
Assembly
MiniTui.dll

A command input: a prompt followed by a text field with history (see CommandLineState).

public sealed class CommandLineBuilder
Inheritance
CommandLineBuilder
Inherited Members

Methods

Draw(Buffer, Rect)

Draw the command line on the first row of area.

public void Draw(Buffer buf, Rect area)

Parameters

buf Buffer
area Rect

Focused(bool)

Show the cursor. On by default.

public CommandLineBuilder Focused(bool focused = true)

Parameters

focused bool

Returns

CommandLineBuilder

Prompt(string)

The prompt. The default is "> ".

public CommandLineBuilder Prompt(string prompt)

Parameters

prompt string

Returns

CommandLineBuilder

State(CommandLineState)

The text, cursor and history.

public CommandLineBuilder State(CommandLineState state)

Parameters

state CommandLineState

Returns

CommandLineBuilder

Style(Style)

A style patched over the theme's input style.

public CommandLineBuilder Style(Style style)

Parameters

style Style

Returns

CommandLineBuilder