Skip to main content
Module

x/tui/src/tui.ts>Tui#run

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
method Tui.prototype.run
import { Tui } from "https://deno.land/x/tui@1.3.4/src/tui.ts";

It does several things:

  • Writes ANSI sequences to stdout to use secondary terminal buffer, hide cursor and clear screen
  • Calls Tui.update() and Tui.render()
  • On "update" event it renders background using Tui.style and calls Component.draw() on every component in Tui.components