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