From 4a48bedcd1d708a43d43dc6259a4e45c52ea3d00 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 3 Dec 2017 23:25:40 -0800 Subject: 4134 - 'input' = 'ingredient' --- html/edit/004-programming-environment.mu.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'html/edit/004-programming-environment.mu.html') diff --git a/html/edit/004-programming-environment.mu.html b/html/edit/004-programming-environment.mu.html index 6179ca5e..703e71e6 100644 --- a/html/edit/004-programming-environment.mu.html +++ b/html/edit/004-programming-environment.mu.html @@ -83,7 +83,7 @@ if ('onhashchange' in window) { 20 21 def new-programming-environment resources:&:resources, screen:&:screen, test-sandbox-editor-contents:text -> result:&:environment [ 22 local-scope - 23 load-ingredients + 23 load-inputs 24 width:num <- screen-width screen 25 result <- new environment:type 26 # recipe editor on the left @@ -101,7 +101,7 @@ if ('onhashchange' in window) { 38 39 def event-loop screen:&:screen, console:&:console, env:&:environment, resources:&:resources -> screen:&:screen, console:&:console, env:&:environment, resources:&:resources [ 40 local-scope - 41 load-ingredients + 41 load-inputs 42 recipes:&:editor <- get *env, recipes:offset 43 current-sandbox:&:editor <- get *env, current-sandbox:offset 44 sandbox-in-focus?:bool <- get *env, sandbox-in-focus?:offset @@ -193,7 +193,7 @@ if ('onhashchange' in window) { 130 131 def resize screen:&:screen, env:&:environment -> env:&:environment, screen:&:screen [ 132 local-scope -133 load-ingredients +133 load-inputs 134 clear-screen screen # update screen dimensions 135 width:num <- screen-width screen 136 divider:num, _ <- divide-with-remainder width, 2 @@ -220,7 +220,7 @@ if ('onhashchange' in window) { 157 # off-screen, it resets cursor-row and cursor-column. 158 def render-without-moving-cursor screen:&:screen, editor:&:editor -> last-row:num, last-column:num, screen:&:screen, editor:&:editor [ 159 local-scope -160 load-ingredients +160 load-inputs 161 return-unless editor, 1/top, 0/left 162 left:num <- get *editor, left:offset 163 screen-height:num <- screen-height screen @@ -464,7 +464,7 @@ if ('onhashchange' in window) { 401 402 def render-all screen:&:screen, env:&:environment, render-editor:render-recipe -> screen:&:screen, env:&:environment [ 403 local-scope -404 load-ingredients +404 load-inputs 405 trace 10, [app], [render all] 406 # top menu 407 trace 11, [app], [render top menu] @@ -493,7 +493,7 @@ if ('onhashchange' in window) { 430 431 def render-recipes screen:&:screen, env:&:environment, render-editor:render-recipe -> screen:&:screen, env:&:environment [ 432 local-scope -433 load-ingredients +433 load-inputs 434 trace 11, [app], [render recipes] 435 old-top-idx:num <- save-top-idx screen 436 recipes:&:editor <- get *env, recipes:offset @@ -515,7 +515,7 @@ if ('onhashchange' in window) { 452 # replaced in a later layer 453 def render-sandbox-side screen:&:screen, env:&:environment, render-editor:render-recipe -> screen:&:screen, env:&:environment [ 454 local-scope -455 load-ingredients +455 load-inputs 456 trace 11, [app], [render sandboxes] 457 old-top-idx:num <- save-top-idx screen 458 current-sandbox:&:editor <- get *env, current-sandbox:offset @@ -534,7 +534,7 @@ if ('onhashchange' in window) { 471 472 def update-cursor screen:&:screen, recipes:&:editor, current-sandbox:&:editor, sandbox-in-focus?:bool, env:&:environment -> screen:&:screen [ 473 local-scope -474 load-ingredients +474 load-inputs 475 <update-cursor-special-cases> 476 { 477 ¦ break-if sandbox-in-focus? @@ -568,13 +568,13 @@ if ('onhashchange' in window) { 505 506 def draw-vertical screen:&:screen, col:num, y:num, bottom:num -> screen:&:screen [ 507 local-scope -508 load-ingredients -509 style:char, style-found?:bool <- next-ingredient +508 load-inputs +509 style:char, style-found?:bool <- next-input 510 { 511 ¦ break-if style-found? 512 ¦ style <- copy 9474/vertical 513 } -514 color:num, color-found?:bool <- next-ingredient +514 color:num, color-found?:bool <- next-input 515 { 516 ¦ # default color to white 517 ¦ break-if color-found? -- cgit 1.4.1-2-gfad0