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

x/tui/src/types.ts

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

Enums

Type describing time of something happening

  • Pre - before it happened
  • Post - after it happened

Interfaces

Interface defining key press issued to stdin

Type that describes empty edge around Rectangle

Interface defining key press issued to stdin using a mouse

Interface defining multiple key presses (both {KeyPress} and {MousePress}) that have been issued to stdin at once

Type that describes offset

Type that describes position and size

Type Aliases

Type defining letters from the latin alphabet

Type defining interpunction characters

Type defining terminal's (console) available size measured in columns and rows

Partial that makes all properties optional, even those within other object properties

Type defining keys that key_reader.ts can distinguish

Generates number types that range from {From} to {To}

Type defining special keys

Type for Standard Input - from where data is read

Type for Standard Output – where data gets written