import { cliffy } from "https://deno.land/x/alloy_folk@v1.1.1/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.