about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-28 22:57:22 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-28 22:57:22 -0700
commitbc859a7ca4713b290fa9d7dea187fde55568ab29 (patch)
tree39401d36682fe391816f1ce5bbceabf065524c7b /apps
parent468927ee1c8b551e50bc4a9e3a2ed689420e1766 (diff)
downloadmu-bc859a7ca4713b290fa9d7dea187fde55568ab29.tar.gz
.
Diffstat (limited to 'apps')
-rw-r--r--apps/colors.mu3
-rw-r--r--apps/rpn.mu5
2 files changed, 3 insertions, 5 deletions
diff --git a/apps/colors.mu b/apps/colors.mu
index 78e58838..c58fec35 100644
--- a/apps/colors.mu
+++ b/apps/colors.mu
@@ -28,8 +28,7 @@ fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk)
       var key2/eax: int <- copy key
       append-byte in, key2
       var g/eax: grapheme <- copy key2
-      draw-grapheme-at-cursor screen, g, 0xf/fg, 0/bg
-      move-cursor-right 0
+      draw-grapheme-at-cursor-over-full-screen screen, g, 0xf/fg, 0/bg
       loop
     }
     clear-screen screen
diff --git a/apps/rpn.mu b/apps/rpn.mu
index 1f432365..ac54457d 100644
--- a/apps/rpn.mu
+++ b/apps/rpn.mu
@@ -36,12 +36,11 @@ fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk)
       var key2/eax: int <- copy key
       append-byte in, key2
       var g/eax: grapheme <- copy key2
-      draw-grapheme-at-cursor screen, g, 0xf/fg, 0/bg
-      move-cursor-right 0
+      draw-grapheme-at-cursor-over-full-screen screen, g, 0xf/fg, 0/bg
       loop
     }
     # clear cursor
-    draw-grapheme-at-cursor screen, space, 3/fg/never-used, 0/bg
+    draw-grapheme-at-cursor-over-full-screen screen, space, 3/fg/never-used, 0/bg
     # parse and eval
     var out/eax: int <- simplify in
     # print