[WIP] Implement save, load, over, infile, outfile, on, lipsum, help + start implementing undo, redo, exit, edit
This commit is contained in:
@@ -18,16 +18,22 @@ export const getSubjectDisplay = (sub: StrRVal): string => {
|
||||
|
||||
export type Display = {
|
||||
showSubject(sub: StrRVal): Awaitable<unknown>
|
||||
showRaw(str: string): Awaitable<unknown>
|
||||
}
|
||||
|
||||
export class ConsoleDisplay implements Display {
|
||||
showSubject(sub: StrRVal) {
|
||||
console.log(`\n---------------\n${getSubjectDisplay(sub)}\n---------------\n`)
|
||||
}
|
||||
|
||||
showRaw(str: string) {
|
||||
console.log(str)
|
||||
}
|
||||
}
|
||||
|
||||
export class NullDisplay implements Display {
|
||||
showSubject() {}
|
||||
showRaw() {}
|
||||
}
|
||||
|
||||
export type Clipboard = {
|
||||
|
||||
Reference in New Issue
Block a user