13 lines
227 B
TypeScript
13 lines
227 B
TypeScript
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();
|
|
}
|
|
}
|