diff options
Diffstat (limited to 'html/edit/004-programming-environment.mu.html')
-rw-r--r-- | html/edit/004-programming-environment.mu.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/html/edit/004-programming-environment.mu.html b/html/edit/004-programming-environment.mu.html index 2ae4fb29..31bf0534 100644 --- a/html/edit/004-programming-environment.mu.html +++ b/html/edit/004-programming-environment.mu.html @@ -94,7 +94,7 @@ if ('onhashchange' in window) { <span id="L33" class="LineNr"> 33 </span> *result <span class="Special"><-</span> put *result, <span class="Constant">recipes:offset</span>, recipes <span id="L34" class="LineNr"> 34 </span> *result <span class="Special"><-</span> put *result, <span class="Constant">current-sandbox:offset</span>, current-sandbox <span id="L35" class="LineNr"> 35 </span> *result <span class="Special"><-</span> put *result, <span class="Constant">sandbox-in-focus?:offset</span>, <span class="Constant">0/false</span> -<span id="L36" class="LineNr"> 36 </span><span class="Constant"> <programming-environment-initialization></span> +<span id="L36" class="LineNr"> 36 </span><span class="Constant"> <a href='004-programming-environment.mu.html#L36'><programming-environment-initialization></a></span> <span id="L37" class="LineNr"> 37 </span>] <span id="L38" class="LineNr"> 38 </span> <span id="L39" class="LineNr"> 39 </span><span class="muRecipe">def</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>:&:<a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>:&:<a href='../084console.mu.html#L23'>console</a>, env:&:environment, <a href='../088file.mu.html#L11'>resources</a>:&:<a href='../088file.mu.html#L11'>resources</a><span class="muRecipe"> -> </span><a href='../081print.mu.html#L4'>screen</a>:&:<a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>:&:<a href='../084console.mu.html#L23'>console</a>, env:&:environment, <a href='../088file.mu.html#L11'>resources</a>:&:<a href='../088file.mu.html#L11'>resources</a> [ @@ -114,17 +114,17 @@ if ('onhashchange' in window) { <span id="L53" class="LineNr"> 53 </span> <span class="muControl">loop-unless</span> found? <span id="L54" class="LineNr"> 54 </span> <span class="muControl">break-if</span> quit? <span class="Comment"># only in tests</span> <span id="L55" class="LineNr"> 55 </span> trace<span class="Constant"> 10</span>, <span class="Constant">[app]</span>, <span class="Constant">[next-event]</span> -<span id="L56" class="LineNr"> 56 </span><span class="Constant"> <handle-event></span> +<span id="L56" class="LineNr"> 56 </span><span class="Constant"> <a href='004-programming-environment.mu.html#L56'><handle-event></a></span> <span id="L57" class="LineNr"> 57 </span> <span class="Comment"># check for global events that will trigger regardless of which editor has focus</span> <span id="L58" class="LineNr"> 58 </span> <span class="Delimiter">{</span> <span id="L59" class="LineNr"> 59 </span> k:num, is-keycode?:bool <span class="Special"><-</span> maybe-convert e:<a href='../084console.mu.html#L4'>event</a>, <span class="Constant">keycode:variant</span> <span id="L60" class="LineNr"> 60 </span> <span class="muControl">break-unless</span> is-keycode? -<span id="L61" class="LineNr"> 61 </span><span class="Constant"> <global-keypress></span> +<span id="L61" class="LineNr"> 61 </span><span class="Constant"> <a href='004-programming-environment.mu.html#L61'><global-keypress></a></span> <span id="L62" class="LineNr"> 62 </span> <span class="Delimiter">}</span> <span id="L63" class="LineNr"> 63 </span> <span class="Delimiter">{</span> <span id="L64" class="LineNr"> 64 </span> c:char, is-unicode?:bool <span class="Special"><-</span> maybe-convert e:<a href='../084console.mu.html#L4'>event</a>, <span class="Constant">text:variant</span> <span id="L65" class="LineNr"> 65 </span> <span class="muControl">break-unless</span> is-unicode? -<span id="L66" class="LineNr"> 66 </span><span class="Constant"> <global-type></span> +<span id="L66" class="LineNr"> 66 </span><span class="Constant"> <a href='004-programming-environment.mu.html#L66'><global-type></a></span> <span id="L67" class="LineNr"> 67 </span> <span class="Delimiter">}</span> <span id="L68" class="LineNr"> 68 </span> <span class="Comment"># 'touch' event - send to both sides, see what picks it up</span> <span id="L69" class="LineNr"> 69 </span> <span class="Delimiter">{</span> @@ -138,7 +138,7 @@ if ('onhashchange' in window) { <span id="L77" class="LineNr"> 77 </span> click-row:num <span class="Special"><-</span> get t, <span class="Constant">row:offset</span> <span id="L78" class="LineNr"> 78 </span> click-column:num <span class="Special"><-</span> get t, <span class="Constant">column:offset</span> <span id="L79" class="LineNr"> 79 </span> <span class="Comment"># later exceptions for non-editor touches will go here</span> -<span id="L80" class="LineNr"> 80 </span><span class="Constant"> <global-touch></span> +<span id="L80" class="LineNr"> 80 </span><span class="Constant"> <a href='004-programming-environment.mu.html#L80'><global-touch></a></span> <span id="L81" class="LineNr"> 81 </span> <span class="Comment"># send to both editors</span> <span id="L82" class="LineNr"> 82 </span> _ <span class="Special"><-</span> <a href='002-typing.mu.html#L48'>move-cursor-in-editor</a> <a href='../081print.mu.html#L4'>screen</a>, recipes, t <span id="L83" class="LineNr"> 83 </span> sandbox-in-focus?:bool <span class="Special"><-</span> <a href='002-typing.mu.html#L48'>move-cursor-in-editor</a> <a href='../081print.mu.html#L4'>screen</a>, current-sandbox, t @@ -525,7 +525,7 @@ if ('onhashchange' in window) { <span id="L464" class="LineNr">464 </span> <span class="Comment">#</span> <span id="L465" class="LineNr">465 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L477'>render-recipes</a> <a href='../081print.mu.html#L4'>screen</a>, env, render-editor <span id="L466" class="LineNr">466 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, render-editor -<span id="L467" class="LineNr">467 </span><span class="Constant"> <render-components-end></span> +<span id="L467" class="LineNr">467 </span><span class="Constant"> <a href='004-programming-environment.mu.html#L467'><render-components-end></a></span> <span id="L468" class="LineNr">468 </span> <span class="Comment">#</span> <span id="L469" class="LineNr">469 </span> recipes:&:editor <span class="Special"><-</span> get *env, <span class="Constant">recipes:offset</span> <span id="L470" class="LineNr">470 </span> current-sandbox:&:editor <span class="Special"><-</span> get *env, <span class="Constant">current-sandbox:offset</span> @@ -546,7 +546,7 @@ if ('onhashchange' in window) { <span id="L485" class="LineNr">485 </span> row:num, column:num, <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> call render-editor, <a href='../081print.mu.html#L4'>screen</a>, recipes <span id="L486" class="LineNr">486 </span> <a href='../081print.mu.html#L408'>clear-line-until</a> <a href='../081print.mu.html#L4'>screen</a>, right <span id="L487" class="LineNr">487 </span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> -<span id="L488" class="LineNr">488 </span><span class="Constant"> <render-recipe-components-end></span> +<span id="L488" class="LineNr">488 </span><span class="Constant"> <a href='004-programming-environment.mu.html#L488'><render-recipe-components-end></a></span> <span id="L489" class="LineNr">489 </span> <span class="Comment"># draw dotted line after recipes</span> <span id="L490" class="LineNr">490 </span> <a href='002-typing.mu.html#L1056'>draw-horizontal</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right, <span class="Constant">9480/horizontal-dotted</span> <span id="L491" class="LineNr">491 </span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> @@ -572,7 +572,7 @@ if ('onhashchange' in window) { <span id="L511" class="LineNr">511 </span><span class="muRecipe">def</span> <a href='004-programming-environment.mu.html#L511'>update-cursor</a> <a href='../081print.mu.html#L4'>screen</a>:&:<a href='../081print.mu.html#L4'>screen</a>, recipes:&:editor, current-sandbox:&:editor, sandbox-in-focus?:bool, env:&:environment<span class="muRecipe"> -> </span><a href='../081print.mu.html#L4'>screen</a>:&:<a href='../081print.mu.html#L4'>screen</a> [ <span id="L512" class="LineNr">512 </span> <span class="Constant">local-scope</span> <span id="L513" class="LineNr">513 </span> <span class="Constant">load-ingredients</span> -<span id="L514" class="LineNr">514 </span><span class="Constant"> <update-cursor-special-cases></span> +<span id="L514" class="LineNr">514 </span><span class="Constant"> <a href='004-programming-environment.mu.html#L514'><update-cursor-special-cases></a></span> <span id="L515" class="LineNr">515 </span> <span class="Delimiter">{</span> <span id="L516" class="LineNr">516 </span> <span class="muControl">break-if</span> sandbox-in-focus? <span id="L517" class="LineNr">517 </span> cursor-row:num <span class="Special"><-</span> get *recipes, <span class="Constant">cursor-row:offset</span> @@ -651,7 +651,7 @@ if ('onhashchange' in window) { <span id="L590" class="LineNr">590 </span> <span id="L591" class="LineNr">591 </span><span class="Comment"># ctrl-l - redraw screen (just in case it printed junk somehow)</span> <span id="L592" class="LineNr">592 </span> -<span id="L593" class="LineNr">593 </span><span class="muRecipe">after</span> <span class="Constant"><global-type></span> [ +<span id="L593" class="LineNr">593 </span><span class="muRecipe">after</span> <span class="Constant"><a href='004-programming-environment.mu.html#L66'><global-type></a></span> [ <span id="L594" class="LineNr">594 </span> <span class="Delimiter">{</span> <span id="L595" class="LineNr">595 </span> redraw-screen?:bool <span class="Special"><-</span> equal c, <span class="Constant">12/ctrl-l</span> <span id="L596" class="LineNr">596 </span> <span class="muControl">break-unless</span> redraw-screen? @@ -664,7 +664,7 @@ if ('onhashchange' in window) { <span id="L603" class="LineNr">603 </span><span class="Comment"># ctrl-n - switch focus</span> <span id="L604" class="LineNr">604 </span><span class="Comment"># todo: test this</span> <span id="L605" class="LineNr">605 </span> -<span id="L606" class="LineNr">606 </span><span class="muRecipe">after</span> <span class="Constant"><global-type></span> [ +<span id="L606" class="LineNr">606 </span><span class="muRecipe">after</span> <span class="Constant"><a href='004-programming-environment.mu.html#L66'><global-type></a></span> [ <span id="L607" class="LineNr">607 </span> <span class="Delimiter">{</span> <span id="L608" class="LineNr">608 </span> switch-side?:bool <span class="Special"><-</span> equal c, <span class="Constant">14/ctrl-n</span> <span id="L609" class="LineNr">609 </span> <span class="muControl">break-unless</span> switch-side? |