Module

x/cliffy/packages/prompt/mod.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.12.0/packages/prompt/mod.ts";

Constructors

new
protected
GenericInput(settings: S)

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
import GenericInput
import { GenericInput } from "https://dotland.deno.dev/x/cliffy@v0.12.0/packages/prompt/mod.ts";