11 lines
347 B
TypeScript
Executable file
11 lines
347 B
TypeScript
Executable file
#!/usr/bin/env -S deno run --allow-env --unstable
|
|
|
|
import { AnsiTerminalDisplay } from "./ansi.ts";
|
|
import { TextUI } from "./ui.ts";
|
|
|
|
const display = new AnsiTerminalDisplay();
|
|
const ui = new TextUI(display);
|
|
await ui.init();
|
|
ui.drawing.text("hello", { x: 10, y: 3 });
|
|
await ui.flush();
|
|
await new Promise((resolve) => setTimeout(resolve, 3000));
|