Skip to main content
Module

x/tui/mod.ts>TuiOptions

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
interface TuiOptions
import { type TuiOptions } from "https://deno.land/x/tui@1.0.0/mod.ts";

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

Properties

optional
canvas: Canvas

Tui will use that canvas to draw on the terminal

optional
stdin: Stdin

Stdin from which tui can read keypresses in handleKeypresses(), defaults to Deno.stdin

optional
stdout: Stdout

Stdout to which tui will write when necessary, defaults to Deno.stdout

optional
style: Style

Style of background drawn by tui

optional
updateRate: number

Distinct update rate at which component draw() function will be called, defaults to canvas refreshRate