about summary refs log tree commit diff stats
path: root/074keyboard.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-21 23:37:49 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-21 23:42:39 -0700
commit6a0f71b9f89df0940a342cd2c91d246cecc18bdf (patch)
tree9e5a926941a0be71e477bf6fe31ac48bc816d295 /074keyboard.mu
parent45c08fea47de1a23ce98f4fc7a1c5c3bed92b5fb (diff)
downloadmu-6a0f71b9f89df0940a342cd2c91d246cecc18bdf.tar.gz
1617
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
+  }
+]