about summary refs log tree commit diff stats
path: root/sandbox
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-01-22 19:14:53 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-01-22 19:14:53 -0800
commit6a03974c420bf2eb560d1fbcdaab8ebb6ef152d8 (patch)
treed5251e4bb48f7a673a84164c11dfdbcdb7f2e984 /sandbox
parentaaf61a535c73ea8631e1820df973fa585b046528 (diff)
downloadmu-6a03974c420bf2eb560d1fbcdaab8ebb6ef152d8.tar.gz
2591
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/001-editor.mu8
1 files changed, 7 insertions, 1 deletions
diff --git a/sandbox/001-editor.mu b/sandbox/001-editor.mu
index c773a0ad..c83b7f3a 100644
--- a/sandbox/001-editor.mu
+++ b/sandbox/001-editor.mu
@@ -233,10 +233,16 @@ recipe clear-line-delimited screen:address:shared:screen, column:number, right:n
   local-scope
   load-ingredients
   space:character <- copy 32/space
+  bg-color:number, bg-color-found?:boolean <- next-ingredient
+  {
+    # default bg-color to black
+    break-if bg-color-found?
+    bg-color <- copy 0/black
+  }
   {
     done?:boolean <- greater-than column, right
     break-if done?
-    screen <- print screen, space
+    screen <- print screen, space, 0/color/unused, bg-color
     column <- add column, 1
     loop
   }