about summary refs log tree commit diff stats
path: root/074console.mu
diff options
context:
space:
mode:
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