about summary refs log tree commit diff stats
path: root/shell/main.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-04-05 23:09:05 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-04-05 23:09:05 -0700
commit07bc1eeb90e1ff4e0c9931f4ad568fdd466b4298 (patch)
tree469489a0bb5b0721746698e511756e8c1799fd21 /shell/main.mu
parent4861c39474965eeb69b34b63a99e09c812c5fefc (diff)
downloadmu-07bc1eeb90e1ff4e0c9931f4ad568fdd466b4298.tar.gz
shell: save repl input to disk before running
Diffstat (limited to 'shell/main.mu')
-rw-r--r--shell/main.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/main.mu b/shell/main.mu
index 1fafa42c..b6ceff95 100644
--- a/shell/main.mu
+++ b/shell/main.mu
@@ -16,7 +16,7 @@ fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk)
       compare key, 0
       loop-if-=
       # no way to quit right now; just reboot
-      edit-sandbox sandbox, key
+      edit-sandbox sandbox, key, screen, keyboard, data-disk
     }
     loop
   }
@@ -36,7 +36,7 @@ fn load-sandbox data-disk: (addr disk), _self: (addr sandbox) {
     var key/eax: byte <- read-byte s
     compare key, 0/null
     break-if-=
-    edit-sandbox self, key
+    edit-sandbox self, key, 0/no-screen, 0/no-keyboard, 0/no-disk
     loop
   }
 }