import { GenericInput } from "https://deno.land/x/lume@v1.17.2/deps/cliffy.ts";
Generic input prompt representation.
Constructors
new
protected
GenericInput(settings: TSettings)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.