about summary refs log tree commit diff stats
path: root/html/console.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-09-06 16:35:46 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-09-06 16:35:46 -0700
commit0e4a335edc7d4e584924fd6b298156e45d2626c8 (patch)
tree4bde00176d6d00b72462e856974fecd4411ef025 /html/console.mu.html
parent3cf4cc43f2622816777c22c49c32e5159574a1d3 (diff)
downloadmu-0e4a335edc7d4e584924fd6b298156e45d2626c8.tar.gz
2175
Diffstat (limited to 'html/console.mu.html')
-rw-r--r--html/console.mu.html22
1 files changed, 10 insertions, 12 deletions
diff --git a/html/console.mu.html b/html/console.mu.html
index 7f46529b..203cbd20 100644
--- a/html/console.mu.html
+++ b/html/console.mu.html
@@ -13,12 +13,9 @@
 pre { white-space: pre-wrap; font-family: monospace; color: #eeeeee; background-color: #080808; }
 body { font-family: monospace; color: #eeeeee; background-color: #080808; }
 * { font-size: 1.05em; }
-.muRecipe { color: #ff8700; }
 .Comment { color: #9090ff; }
-.Delimiter { color: #a04060; }
 .Special { color: #ff6060; }
-.Constant { color: #00a0a0; }
-.muControl { color: #c0a020; }
+.Identifier { color: #804000; }
 -->
 </style>
 
@@ -31,18 +28,19 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; }
 <body>
 <pre id='vimCodeElement'>
 <span class="Comment"># example program: reading events from keyboard or mouse</span>
-<span class="Comment">#</span>
+#
 <span class="Comment"># Keeps printing 'a' until you press a key or click on the mouse.</span>
 
-<span class="muRecipe">recipe</span> main [
+recipe main [
   open-console
-  <span class="Delimiter">{</span>
-    _, found?:boolean<span class="Special"> &lt;- </span>check-for-interaction
-    <span class="muControl">break-if</span> found?
-    print-character-to-display <span class="Constant">97</span>, <span class="Constant">7/white</span>
-    <span class="muControl">loop</span>
-  <span class="Delimiter">}</span>
+  {
+    e:event, found?:boolean<span class="Special"> &lt;- </span>check-for-interaction
+    break-if found?
+    <span class="Identifier">print</span>-character-to-display 97, 7/white
+    loop
+  }
   close-console
+  $<span class="Identifier">print</span> e, 10/newline
 ]
 </pre>
 </body>