about summary refs log tree commit diff stats
path: root/cpp/console.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-20 17:35:32 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-20 17:35:32 -0700
commit12d73ee8db0f6748fabf65f4d0789c79f76c8d1f (patch)
tree3a31fa1c5eb98584a71af8a5e442e277ccf21e94 /cpp/console.mu
parentf08a13e1f709c69375202e8ecafb337a24abed45 (diff)
downloadmu-12d73ee8db0f6748fabf65f4d0789c79f76c8d1f.tar.gz
1114 - more primitives for managing the cursor
Diffstat (limited to 'cpp/console.mu')
-rw-r--r--cpp/console.mu14
1 files changed, 14 insertions, 0 deletions
diff --git a/cpp/console.mu b/cpp/console.mu
index a25f94cb..d83619c7 100644
--- a/cpp/console.mu
+++ b/cpp/console.mu
@@ -1,5 +1,19 @@
 recipe main [
   cursor-mode 0:literal/screen
+  print-character-to-display 97:literal
+  1:integer/raw, 2:integer/raw <- cursor-position-on-display
+  $print 1:integer/raw
+  $print [, ]
+  $print 2:integer/raw
+  $print [
+]
+  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
   retro-mode 0:literal/screen
 ]