about summary refs log tree commit diff stats
path: root/mouse.mu
diff options
context:
space:
mode:
Diffstat (limited to 'mouse.mu')
-rw-r--r--mouse.mu11
1 files changed, 11 insertions, 0 deletions
diff --git a/mouse.mu b/mouse.mu
new file mode 100644
index 00000000..0621b306
--- /dev/null
+++ b/mouse.mu
@@ -0,0 +1,11 @@
+# example program: managing the display
+
+recipe main [
+  switch-to-display
+  {
+    _, found?:boolean <- read-keyboard-or-mouse-event
+    break-if found?:boolean
+    loop
+  }
+  return-to-console
+]