about summary refs log tree commit diff stats
path: root/084console.mu
diff options
context:
space:
mode:
Diffstat (limited to '084console.mu')
-rw-r--r--084console.mu22
1 files changed, 11 insertions, 11 deletions
diff --git a/084console.mu b/084console.mu
index 6bc7a590..5adb5a36 100644
--- a/084console.mu
+++ b/084console.mu
@@ -22,31 +22,31 @@ container resize-event [
 
 container console [
   current-event-index:number
-  events:address:array:event
+  events:address:shared:array:event
 ]
 
-recipe new-fake-console events:address:array:event -> result:address:console [
+recipe new-fake-console events:address:shared:array:event -> result:address:shared:console [
   local-scope
   load-ingredients
-  result:address:console <- new console:type
-  buf:address:address:array:event <- get-address *result, events:offset
+  result:address:shared:console <- new console:type
+  buf:address:address:shared:array:event <- get-address *result, events:offset
   *buf <- copy events
   idx:address:number <- get-address *result, current-event-index:offset
   *idx <- copy 0
 ]
 
-recipe read-event console:address:console -> result:event, console:address:console, found?:boolean, quit?:boolean [
+recipe read-event console:address:shared:console -> result:event, console:address:shared:console, found?:boolean, quit?:boolean [
   local-scope
   load-ingredients
   {
     break-unless console
     current-event-index:address:number <- get-address *console, current-event-index:offset
-    buf:address:array:event <- get *console, events:offset
+    buf:address:shared:array:event <- get *console, events:offset
     {
       max:number <- length *buf
       done?:boolean <- greater-or-equal *current-event-index, max
       break-unless done?
-      dummy:address:event <- new event:type
+      dummy:address:shared:event <- new event:type
       reply *dummy, console/same-as-ingredient:0, 1/found, 1/quit
     }
     result <- index *buf, *current-event-index
@@ -61,7 +61,7 @@ recipe read-event console:address:console -> result:event, console:address:conso
 # variant of read-event for just keyboard events. Discards everything that
 # isn't unicode, so no arrow keys, page-up/page-down, etc. But you still get
 # newlines, tabs, ctrl-d..
-recipe read-key console:address:console -> result:character, console:address:console, found?:boolean, quit?:boolean [
+recipe read-key console:address:shared:console -> result:character, console:address:shared:console, found?:boolean, quit?:boolean [
   local-scope
   load-ingredients
   x:event, console, found?:boolean, quit?:boolean <- read-event console
@@ -72,7 +72,7 @@ recipe read-key console:address:console -> result:character, console:address:con
   reply *c, console/same-as-ingredient:0, 1/found, 0/quit
 ]
 
-recipe send-keys-to-channel console:address:console, chan:address:channel, screen:address:screen -> console:address:console, chan:address:channel, screen:address:screen [
+recipe send-keys-to-channel console:address:shared:console, chan:address:shared:channel, screen:address:shared:screen -> console:address:shared:console, chan:address:shared:channel, screen:address:shared:screen [
   local-scope
   load-ingredients
   {
@@ -86,7 +86,7 @@ recipe send-keys-to-channel console:address:console, chan:address:channel, scree
   }
 ]
 
-recipe wait-for-event console:address:console -> console:address:console [
+recipe wait-for-event console:address:shared:console -> console:address:shared:console [
   local-scope
   load-ingredients
   {
@@ -96,7 +96,7 @@ recipe wait-for-event console:address:console -> console:address:console [
 ]
 
 # use this helper to skip rendering if there's lots of other events queued up
-recipe has-more-events? console:address:console -> result:boolean [
+recipe has-more-events? console:address:shared:console -> result:boolean [
   local-scope
   load-ingredients
   {