about summary refs log tree commit diff stats
path: root/display.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-05 21:17:24 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-05 21:17:24 -0700
commitb96af395b9af2ff9df94b3e82213171f30827c8d (patch)
tree17c8c12648ccc25625e2534ec8d74fbe8f1542cc /display.mu
parent2e3b597fe85b654e82b891c22d50754fa5a26156 (diff)
downloadmu-b96af395b9af2ff9df94b3e82213171f30827c8d.tar.gz
1276 - make C++ version the default
I've tried to update the Readme, but there are at least a couple of issues.
Diffstat (limited to 'display.mu')
-rw-r--r--display.mu23
1 files changed, 23 insertions, 0 deletions
diff --git a/display.mu b/display.mu
new file mode 100644
index 00000000..5d2cb17d
--- /dev/null
+++ b/display.mu
@@ -0,0 +1,23 @@
+# example of raw primitives operating on display
+recipe main [
+  switch-to-display
+  print-character-to-display 97:literal
+  1:integer/raw, 2:integer/raw <- cursor-position-on-display
+  wait-for-key-from-keyboard
+  clear-display
+  move-cursor-on-display 0:literal, 4:literal
+  print-character-to-display 98:literal
+  wait-for-key-from-keyboard
+  move-cursor-on-display 0:literal, 0:literal
+  clear-line-on-display
+  wait-for-key-from-keyboard
+  move-cursor-down-on-display
+  wait-for-key-from-keyboard
+  move-cursor-right-on-display
+  wait-for-key-from-keyboard
+  move-cursor-left-on-display
+  wait-for-key-from-keyboard
+  move-cursor-up-on-display
+  wait-for-key-from-keyboard
+  return-to-console
+]