textui/demo.ts

10 lines
267 B
TypeScript
Raw Normal View History

2021-05-11 21:20:33 +00:00
#!/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));