import { GenericInput } from "https://deno.land/x/cliffy@v0.18.0/mod.ts";
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: KeyEvent): 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.