Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/alloy_folk/deps.ts>Prompt.GenericInput

An application installer for restriced macOS
Latest
class Prompt.GenericInput
extends GenericPrompt<T, V, S>
Re-export
Abstract
import { Prompt } from "https://deno.land/x/alloy_folk@v1.1.2/deps.ts";
const { GenericInput } = Prompt;

Generic input prompt representation.

Constructors

new
protected
GenericInput(settings: S)

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.