about summary refs log tree commit diff stats
path: root/074console.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-07-13 20:33:39 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-07-13 20:33:39 -0700
commitdfd2ed38f24b82da102d7fd899fa58bb0a791023 (patch)
tree37f72197f8239e6bb79ad2fed9ae3e606b875fd9 /074console.mu
parenta2d8c7132258efeb6da2716267786a931f95b47b (diff)
downloadmu-dfd2ed38f24b82da102d7fd899fa58bb0a791023.tar.gz
1773 - update all mu recipes to new-default-space
Turns out to not affect memory utilization or run-time. At all.
But still looks nicer and requires less fudging on our part.
Diffstat (limited to '074console.mu')
-rw-r--r--074console.mu12
1 files changed, 6 insertions, 6 deletions
diff --git a/074console.mu b/074console.mu
index 8ec8e1e9..8c96e123 100644
--- a/074console.mu
+++ b/074console.mu
@@ -20,7 +20,7 @@ container console [
 ]
 
 recipe new-fake-console [
-  default-space:address:array:location <- new location:type, 30:literal
+  new-default-space
   result:address:console <- new console:type
   buf:address:address:array:character <- get-address result:address:console/deref, data:offset
 #?   $start-tracing #? 1
@@ -32,7 +32,7 @@ recipe new-fake-console [
 ]
 
 recipe read-event [
-  default-space:address:array:location <- new location:type, 30:literal
+  new-default-space
   x:address:console <- next-ingredient
   {
     break-unless x:address:console
@@ -59,7 +59,7 @@ recipe read-event [
 # isn't unicode, so no arrow keys, page-up/page-down, etc. But you still get
 # newlines, tabs, ctrl-d..
 recipe read-key [
-  default-space:address:array:location <- new location:type, 30:literal
+  new-default-space
 #?   $print default-space:address:array:location #? 1
 #?   $exit #? 1
 #?   $start-tracing #? 1
@@ -77,7 +77,7 @@ recipe read-key [
 ]
 
 recipe send-keys-to-channel [
-  default-space:address:array:location <- new location:type, 30:literal
+  new-default-space
   console:address <- next-ingredient
   chan:address:channel <- next-ingredient
   screen:address <- next-ingredient
@@ -93,7 +93,7 @@ recipe send-keys-to-channel [
 ]
 
 recipe wait-for-event [
-  default-space:address:array:location <- new location:type, 30:literal
+  new-default-space
   console:address <- next-ingredient
   {
     _, console:address, found?:boolean <- read-event console:address
@@ -103,7 +103,7 @@ recipe wait-for-event [
 
 # use this helper to skip rendering if there's lots of other events queued up
 recipe has-more-events? [
-  default-space:address:array:location <- new location:type, 30:literal
+  new-default-space
   console:address <- next-ingredient
   {
     break-unless console:address