Skip to main content
Module

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

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

It does several things:

  • Disables all event listeners
  • Calls Component.remove on every component in Tui.components
  • Stops Tui.render() and Tui.update() via Tui.#dispatches
  • Writes ANSI sequences to stdout which shows back cursor and returns to using primary terminal buffer