Module

x/cliffy/packages/prompt/lib/generic-input.ts>GenericInput

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
class GenericInput
extends GenericPrompt<T, string, S>
Abstract
import { GenericInput } from "https://dotland.deno.dev/x/cliffy@v0.6.1/packages/prompt/lib/generic-input.ts";

Properties

protected
index: number
protected
input: string

Methods

protected
addChar(char: string): void
protected
deleteChar(): void
protected
deleteCharRight(): void
protected
getValue(): string
protected
handleEvent(event: KeyEvent): Promise<boolean>
protected
moveCursorLeft(): void
protected
moveCursorRight(): void
protected
setPrompt(message: string)

Static Methods

inject(value: string): void