From 3dfebacf4c4f0c05f6a8749fbe736fe2d9740110 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 20 Sep 2020 11:08:42 -0700 Subject: 6818 - color top of stack Suggestion from the Future of Software group (https://futureofcoding.slack.com/archives/C0120A3L30R/p1600591669008700?thread_ts=1600587602.007800) --- apps/tile/environment.mu | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit 1.4.1-2-gfad0