[WIP] Implement save, load, over, infile, outfile, on, lipsum, help + start implementing undo, redo, exit, edit

This commit is contained in:
2026-02-22 10:10:38 -06:00
parent 42e6b41879
commit d52b121fd7
15 changed files with 458 additions and 29 deletions

View File

@@ -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 = {