diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-06-21 23:37:49 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-06-21 23:42:39 -0700 |
commit | 6a0f71b9f89df0940a342cd2c91d246cecc18bdf (patch) | |
tree | 9e5a926941a0be71e477bf6fe31ac48bc816d295 /074keyboard.mu | |
parent | 45c08fea47de1a23ce98f4fc7a1c5c3bed92b5fb (diff) | |
download | mu-6a0f71b9f89df0940a342cd2c91d246cecc18bdf.tar.gz |
1617
Diffstat (limited to '074keyboard.mu')
-rw-r--r-- | 074keyboard.mu | 9 |
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 + } +] |