about summary refs log tree commit diff stats
path: root/074keyboard.mu
diff options
context:
space:
mode:
Diffstat (limited to '074keyboard.mu')
-rw-r--r--074keyboard.mu9
1 files changed, 9 insertions, 0 deletions
diff --git a/074keyboard.mu b/074keyboard.mu
index 9538546e..2d82a3d9 100644
--- a/074keyboard.mu
+++ b/074keyboard.mu
@@ -88,3 +88,12 @@ recipe send-keys-to-channel [
     loop
   }
 ]
+
+recipe wait-for-event [
+  default-space:address:array:location <- new location:type, 30:literal
+  console:address <- next-ingredient
+  {
+    _, console:address, found?:boolean <- read-event console:address
+    loop-unless found?:boolean
+  }
+]