From d009e158803956c76adbf8f58a62884c3e7affb3 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 26 Jan 2016 23:47:23 -0800 Subject: 2605 --- html/084console.mu.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'html/084console.mu.html') diff --git a/html/084console.mu.html b/html/084console.mu.html index 4065e18b..f608bafe 100644 --- a/html/084console.mu.html +++ b/html/084console.mu.html @@ -55,31 +55,31 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } 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 @@ -94,7 +94,7 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } # 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 @@ -105,7 +105,7 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } 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 { @@ -119,7 +119,7 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } } ] -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 { @@ -129,7 +129,7 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } ] # 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 { -- cgit 1.4.1-2-gfad0