Skip to main content
Module

x/cliffy/prompt.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>
Re-export
Abstract
import { GenericInput } from "https://deno.land/x/cliffy@v0.11.2/prompt.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