about summary refs log tree commit diff stats
path: root/apps/tile
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-09-20 11:08:42 -0700
committerKartik Agaram <vc@akkartik.com>2020-09-20 11:39:19 -0700
commit3dfebacf4c4f0c05f6a8749fbe736fe2d9740110 (patch)
tree462e4ae8c7a971cfe471061cff03ae1a13b78c1f /apps/tile
parenta437a9d6a09d9da12d5d33af3f3c264f52b5cb62 (diff)
downloadmu-3dfebacf4c4f0c05f6a8749fbe736fe2d9740110.tar.gz
6818 - color top of stack
Suggestion from the Future of Software group (https://futureofcoding.slack.com/archives/C0120A3L30R/p1600591669008700?thread_ts=1600587602.007800)
Diffstat (limited to 'apps/tile')
-rw-r--r--apps/tile/environment.mu3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu
index caa8c720..60e85004 100644
--- a/apps/tile/environment.mu
+++ b/apps/tile/environment.mu
@@ -205,6 +205,7 @@ fn render-column screen: (addr screen), first-word: (addr word), final-word: (ad
   curr-row <- add 6  # input-row 3 + stack-margin-top 3
   var i/eax: int <- int-stack-length stack-addr
   curr-row <- subtract i
+  start-color screen, 0, 2
   {
     compare i, 0
     break-if-<=
@@ -217,6 +218,7 @@ fn render-column screen: (addr screen), first-word: (addr word), final-word: (ad
       break-if-<=
       max-width <- copy size
     }
+    reset-formatting screen
     curr-row <- increment
     i <- decrement
     loop
@@ -224,6 +226,7 @@ fn render-column screen: (addr screen), first-word: (addr word), final-word: (ad
 
   # render word, initialize result
   move-cursor screen, 3, botleft-col  # input-row
+  reset-formatting screen
   print-word screen, final-word
 
   # update cursor