about summary refs log tree commit diff stats
path: root/shell/sandbox.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-04-17 08:30:01 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-04-17 08:34:48 -0700
commit1354161a36e0aaa4ad26f7597e9f7a05c0465be2 (patch)
tree5d46b5d203ab78563d9a2bbbe0999418c497edf6 /shell/sandbox.mu
parent1a74c3a1e69ec87e901a2869a4777ad07dbfb176 (diff)
downloadmu-1354161a36e0aaa4ad26f7597e9f7a05c0465be2.tar.gz
tmp: debugging why brline prints no pixels
Among other things, we turned off the trace to significantly speed up the
debug cycle.

State as of https://merveilles.town/@akkartik/106079258606146213

Ohhh, as I save the commit I notice a big problem: I've been editing the
disk image directly because writes to the Mu disk lose indentation. But
I've been forgetting that the state in the Mu disk needs to be pre-evaluated.
So function bindings need extra parens for the environment. The `pixel`
calls in the previous commit message are the first statement in the body,
and they aren't actually considered part of the body right now. No wonder
they don't run.

There are lots of other problems, but this will clarify a lot.
Diffstat (limited to 'shell/sandbox.mu')
-rw-r--r--shell/sandbox.mu2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/sandbox.mu b/shell/sandbox.mu
index 1d9e2289..944bc88d 100644
--- a/shell/sandbox.mu
+++ b/shell/sandbox.mu
@@ -29,7 +29,7 @@ fn initialize-sandbox _self: (addr sandbox), screen-and-keyboard?: boolean {
   }
   #
   var trace-ah/eax: (addr handle trace) <- get self, trace
-  allocate trace-ah
+#?   allocate trace-ah
   var trace/eax: (addr trace) <- lookup *trace-ah
   initialize-trace trace, 0x8000/lines, 0x80/visible-lines
   var cursor-in-data?/eax: (addr boolean) <- get self, cursor-in-data?