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/001-editor.mu.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'html/edit/001-editor.mu.html') diff --git a/html/edit/001-editor.mu.html b/html/edit/001-editor.mu.html index 215debfd..2f22aa64 100644 --- a/html/edit/001-editor.mu.html +++ b/html/edit/001-editor.mu.html @@ -68,7 +68,7 @@ if ('onhashchange' in window) { 4 # screen dimensions, then stop 5 def main text:text [ 6 local-scope - 7 load-ingredients + 7 load-inputs 8 open-console 9 clear-screen 0/screen # non-scrolling app 10 e:&:editor <- new-editor text, 0/left, 5/right @@ -114,7 +114,7 @@ if ('onhashchange' in window) { 50 # right is exclusive 51 def new-editor s:text, left:num, right:num -> result:&:editor [ 52 local-scope - 53 load-ingredients + 53 load-inputs 54 # no clipping of bounds 55 right <- subtract right, 1 56 result <- new editor:type @@ -135,7 +135,7 @@ if ('onhashchange' in window) { 71 72 def insert-text editor:&:editor, text:text -> editor:&:editor [ 73 local-scope - 74 load-ingredients + 74 load-inputs 75 curr:&:duplex-list:char <- get *editor, data:offset 76 insert curr, text 77 ] @@ -170,7 +170,7 @@ if ('onhashchange' in window) { 106 # outside text. 107 def render screen:&:screen, editor:&:editor -> last-row:num, last-column:num, screen:&:screen, editor:&:editor [ 108 local-scope -109 load-ingredients +109 load-inputs 110 return-unless editor, 1/top, 0/left 111 left:num <- get *editor, left:offset 112 screen-height:num <- screen-height screen @@ -270,7 +270,7 @@ if ('onhashchange' in window) { 206 207 def clear-screen-from screen:&:screen, row:num, column:num, left:num, right:num -> screen:&:screen [ 208 local-scope -209 load-ingredients +209 load-inputs 210 #? stash [clear-screen-from] row column [between] left [and] right 211 # if it's the real screen, use the optimized primitive 212 { @@ -286,7 +286,7 @@ if ('onhashchange' in window) { 222 223 def clear-rest-of-screen screen:&:screen, row:num, left:num, right:num -> screen:&:screen [ 224 local-scope -225 load-ingredients +225 load-inputs 226 row <- add row, 1 227 # if it's the real screen, use the optimized primitive 228 { @@ -460,7 +460,7 @@ if ('onhashchange' in window) { 396 # so far the previous color is all the information we need; that may change 397 def get-color color:num, c:char -> color:num [ 398 local-scope -399 load-ingredients +399 load-inputs 400 color-is-white?:bool <- equal color, 7/white 401 # if color is white and next character is '#', switch color to blue 402 { -- cgit 1.4.1-2-gfad0