textui/common.ts

14 lines
227 B
TypeScript
Raw Normal View History

2021-05-11 21:20:33 +00:00
import { Display } from "./display.ts";
/**
* Common abstraction for a textual UI
*/
export class TextUI {
constructor(private display: Display) {
}
async init(): Promise<void> {
await this.display.clear();
}
}