Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/tui/src/components/textbox.ts

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
import * as tui from "https://deno.land/x/tui@1.3.4/src/components/textbox.ts";

Classes

Component that allows user to input text. It implements most important ways to manipulate inputting text e.g.:

  • Arrows - Move cursor in specified direction
  • Return – Create new line
  • Home/End - Go to the start/end of the line
  • PgUp/PgDown - Go to the start/end of the text input
  • Delete/Backspace - Delete preceding/subsequent character

Functions

Default keyboard handler for {TextboxComponent}

Interfaces

Interface defining object that {TextboxComponent}'s constructor can interpret

Complementary interface defining what's accessible in {TextboxComponent} class in addition to {TextboxComponentOptions}

Type Aliases

EventMap that {TextboxComponent} uses

Implementation for {TextboxComponent} class