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
Focused(bool)
Show the cursor. On by default.
public CommandLineBuilder Focused(bool focused = true)
Parameters
focusedbool
Returns
Prompt(string)
The prompt. The default is "> ".
public CommandLineBuilder Prompt(string prompt)
Parameters
promptstring
Returns
State(CommandLineState)
The text, cursor and history.
public CommandLineBuilder State(CommandLineState state)
Parameters
stateCommandLineState
Returns
Style(Style)
A style patched over the theme's input style.
public CommandLineBuilder Style(Style style)
Parameters
styleStyle