about summary refs log tree commit diff stats
path: root/mouse.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-11 22:08:27 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-11 22:08:27 -0700
commitfbf5626f7df6d23f68d5497fa4cf652b8f3cae39 (patch)
tree7206f71ec3d048e5e3fdaa3cd8982bfe9f9cedda /mouse.mu
parent55ca145e619fb9efafc021c3047f9ed5cb6fecf8 (diff)
downloadmu-fbf5626f7df6d23f68d5497fa4cf652b8f3cae39.tar.gz
1552 - mouse support
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
+]