From dbe124108b7a3529feeeba91339928c4ac737072 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 23 Jun 2015 14:02:12 -0700 Subject: 1631 - update html versions Html is a little more readable thanks to feedback from J David Eisenberg (https://news.ycombinator.com/item?id=9766330), in particular the suggestion to use https://addons.mozilla.org/En-us/firefox/addon/wcag-contrast-checker. --- html/console.mu.html | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 html/console.mu.html (limited to 'html/console.mu.html') diff --git a/html/console.mu.html b/html/console.mu.html new file mode 100644 index 00000000..098c7e43 --- /dev/null +++ b/html/console.mu.html @@ -0,0 +1,50 @@ + + + + +Mu - console.mu + + + + + + + + + + +
+# example program: reading events from keyboard or mouse
+#
+# Keeps printing 'a' until you press a key or click on the mouse.
+
+recipe main [
+  open-console
+  {
+    _, found?:boolean <- check-for-interaction
+    break-if found?:boolean
+    print-character-to-display 97:literal, 7:literal/white
+    loop
+  }
+  close-console
+]
+
+ + + -- cgit 1.4.1-2-gfad0