import { Cliffy } from "https://deno.land/x/dmm@v2.1.2/tests/integration/up-to-date-deps/deps.ts";
const { GenericInput } = Cliffy;
Generic input prompt representation.
Constructors
new
protected
GenericInput(settings: S)Prompt constructor.
Methods
protected
addChar(char: string): voidAdd character to current input.
protected
deleteChar(): voidDelete char left.
protected
deleteCharRight(): voidDelete char right.
protected
getCurrentInputValue(): stringprotected
handleEvent(event: KeyCode): Promise<void>Handle user input event.
protected
highlight(value: string | number,
color1?: (val: string) => string,
color2?: (val: string) => string,
protected
input(): stringprotected
message(): stringprotected
moveCursorLeft(): voidMove prompt cursor left.
protected
moveCursorRight(): voidMove prompt cursor right.