From e5c11a5137d538b7713dd8708ca767c208824c06 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 26 Dec 2016 01:17:01 -0800 Subject: 3709 - line numbers in html Each line number also gets an anchor name, but I'm not hyperlinking them for now because I don't want to encourage bookmarking these links just yet. They aren't permalinks because every revision may change what's at any given line number. --- html/display.mu.html | 78 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 51 insertions(+), 27 deletions(-) (limited to 'html/display.mu.html') diff --git a/html/display.mu.html b/html/display.mu.html index 75a76413..5d63aeb2 100644 --- a/html/display.mu.html +++ b/html/display.mu.html @@ -6,16 +6,17 @@ - + @@ -23,35 +24,58 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color - +
-# example program: managing the display
-
-def main [
-  open-console
-  print-character-to-display 97, 1/red, 2/green
-  1:num/raw, 2:num/raw <- cursor-position-on-display
-  wait-for-some-interaction
-  clear-display
-  move-cursor-on-display 0, 4
-  print-character-to-display 98
-  wait-for-some-interaction
-  move-cursor-on-display 0, 0
-  clear-line-on-display
-  wait-for-some-interaction
-  move-cursor-down-on-display
-  wait-for-some-interaction
-  move-cursor-right-on-display
-  wait-for-some-interaction
-  move-cursor-left-on-display
-  wait-for-some-interaction
-  move-cursor-up-on-display
-  wait-for-some-interaction
-  close-console
-]
+ 1 # example program: managing the display
+ 2 
+ 3 def main [
+ 4   open-console
+ 5   print-character-to-display 97, 1/red, 2/green
+ 6   1:num/raw, 2:num/raw <- cursor-position-on-display
+ 7   wait-for-some-interaction
+ 8   clear-display
+ 9   move-cursor-on-display 0, 4
+10   print-character-to-display 98
+11   wait-for-some-interaction
+12   move-cursor-on-display 0, 0
+13   clear-line-on-display
+14   wait-for-some-interaction
+15   move-cursor-down-on-display
+16   wait-for-some-interaction
+17   move-cursor-right-on-display
+18   wait-for-some-interaction
+19   move-cursor-left-on-display
+20   wait-for-some-interaction
+21   move-cursor-up-on-display
+22   wait-for-some-interaction
+23   close-console
+24 ]
 
-- cgit 1.4.1-2-gfad0