textui/demo.ts

9 lines
267 B
TypeScript
Executable file

#!/usr/bin/env -S deno run
import { AnsiTerminalDisplay } from "./ansi.ts";
import { TextUI } from "./common.ts";
const display = new AnsiTerminalDisplay();
const ui = new TextUI(display);
await ui.init();
await new Promise((resolve) => setTimeout(resolve, 3000));