about summary refs log tree commit diff stats
path: root/html/screen.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/screen.mu.html
parent3cf4cc43f2622816777c22c49c32e5159574a1d3 (diff)
downloadmu-0e4a335edc7d4e584924fd6b298156e45d2626c8.tar.gz
2175
Diffstat (limited to 'html/screen.mu.html')
-rw-r--r--html/screen.mu.html43
1 files changed, 21 insertions, 22 deletions
diff --git a/html/screen.mu.html b/html/screen.mu.html
index 6efea923..72156547 100644
--- a/html/screen.mu.html
+++ b/html/screen.mu.html
@@ -13,10 +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; }
-.Constant { color: #00a0a0; }
 .Special { color: #ff6060; }
+.Identifier { color: #804000; }
 -->
 </style>
 
@@ -29,30 +28,30 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; }
 <body>
 <pre id='vimCodeElement'>
 <span class="Comment"># example program: managing the display using 'screen' objects</span>
-<span class="Comment">#</span>
+#
 <span class="Comment"># The zero screen below means 'use the real screen'. Tests can also use fake</span>
 <span class="Comment"># screens.</span>
 
-<span class="muRecipe">recipe</span> main [
+recipe main [
   open-console
-  print-character <span class="Constant">0/screen</span>, <span class="Constant">97/a</span>, <span class="Constant">2/red</span>
-  <span class="Constant">1</span>:number/<span class="Special">raw</span>, <span class="Constant">2</span>:number/<span class="Special">raw &lt;- </span>cursor-position <span class="Constant">0/screen</span>
-  wait-for-event <span class="Constant">0/console</span>
-  clear-screen <span class="Constant">0/screen</span>
-  move-cursor <span class="Constant">0/screen</span>, <span class="Constant">0/row</span>, <span class="Constant">4/column</span>
-  print-character <span class="Constant">0/screen</span>, <span class="Constant">98/b</span>
-  wait-for-event <span class="Constant">0/console</span>
-  move-cursor <span class="Constant">0/screen</span>, <span class="Constant">0/row</span>, <span class="Constant">0/column</span>
-  clear-line <span class="Constant">0/screen</span>
-  wait-for-event <span class="Constant">0/console</span>
-  cursor-down <span class="Constant">0/screen</span>
-  wait-for-event <span class="Constant">0/console</span>
-  cursor-right <span class="Constant">0/screen</span>
-  wait-for-event <span class="Constant">0/console</span>
-  cursor-left <span class="Constant">0/screen</span>
-  wait-for-event <span class="Constant">0/console</span>
-  cursor-up <span class="Constant">0/screen</span>
-  wait-for-event <span class="Constant">0/console</span>
+  <span class="Identifier">print</span>-character 0/screen, 97/a, 2/red
+  1:number/<span class="Special">raw</span>, 2:number/<span class="Special">raw &lt;- </span>cursor-position 0/screen
+  wait-for-event 0/console
+  clear-screen 0/screen
+  move-cursor 0/screen, 0/row, 4/column
+  <span class="Identifier">print</span>-character 0/screen, 98/b
+  wait-for-event 0/console
+  move-cursor 0/screen, 0/row, 0/column
+  clear-line 0/screen
+  wait-for-event 0/console
+  cursor-down 0/screen
+  wait-for-event 0/console
+  cursor-right 0/screen
+  wait-for-event 0/console
+  cursor-left 0/screen
+  wait-for-event 0/console
+  cursor-up 0/screen
+  wait-for-event 0/console
   close-console
 ]
 </pre>