Module

x/lume/deps/cliffy.ts>GenericInput

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class GenericInput
Abstract
import { GenericInput } from "https://dotland.deno.dev/x/lume@v2.4.2/deps/cliffy.ts";

Generic input prompt representation.

Constructors

new
protected
GenericInput(settings: TSettings)

Prompt constructor.

Properties

protected
inputIndex: number
protected
inputValue: string

Methods

protected
addChar(char: string): void

Add character to current input.

protected
deleteChar(): void

Delete char left.

protected
deleteCharRight(): void

Delete char right.

protected
getCurrentInputValue(): string
protected
handleEvent(event: KeyCode): Promise<void>

Handle user input event.

protected
highlight(
value: string | number,
color1?: (val: string) => string,
color2?: (val: string) => string,
): string
protected
input(): string
protected
message(): string
protected
moveCursorLeft(): void

Move prompt cursor left.

protected
moveCursorRight(): void

Move prompt cursor right.

import GenericInput
import { GenericInput } from "https://dotland.deno.dev/x/lume@v2.4.2/deps/cliffy.ts";