diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-06-24 16:00:44 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-06-24 16:00:44 -0700 |
commit | aac2775a4d30459c3090569b26e81ba18f1423a7 (patch) | |
tree | 4dfec62ec660fa9a0297cfc813b133286d3ece2e /html/edit/008-sandbox-edit.mu.html | |
parent | d467b0a5b2ebf4e3bbfb510ca317e6141cce0d06 (diff) | |
download | mu-aac2775a4d30459c3090569b26e81ba18f1423a7.tar.gz |
3951
Diffstat (limited to 'html/edit/008-sandbox-edit.mu.html')
-rw-r--r-- | html/edit/008-sandbox-edit.mu.html | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/html/edit/008-sandbox-edit.mu.html b/html/edit/008-sandbox-edit.mu.html index 49a33647..0103fb55 100644 --- a/html/edit/008-sandbox-edit.mu.html +++ b/html/edit/008-sandbox-edit.mu.html @@ -69,13 +69,13 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span> <span class="Comment"># empty recipes</span> <span id="L8" class="LineNr"> 8 </span> assume-resources [ <span id="L9" class="LineNr"> 9 </span> ] -<span id="L10" class="LineNr"> 10 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[add 2, 2]</span> -<span id="L11" class="LineNr"> 11 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> +<span id="L10" class="LineNr"> 10 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[add 2, 2]</span> +<span id="L11" class="LineNr"> 11 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> <span id="L12" class="LineNr"> 12 </span> <span class="Comment"># run it</span> <span id="L13" class="LineNr"> 13 </span> assume-console [ <span id="L14" class="LineNr"> 14 </span> <span class="Conceal">¦</span> press F4 <span id="L15" class="LineNr"> 15 </span> ] -<span id="L16" class="LineNr"> 16 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L16" class="LineNr"> 16 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L17" class="LineNr"> 17 </span> screen-should-contain [ <span id="L18" class="LineNr"> 18 </span> <span class="Conceal">¦</span><span class="Constant"> . run (F4) .</span> <span id="L19" class="LineNr"> 19 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎ .</span> @@ -91,7 +91,7 @@ if ('onhashchange' in window) { <span id="L29" class="LineNr"> 29 </span> <span class="Conceal">¦</span> left-click<span class="Constant"> 3</span>,<span class="Constant"> 55</span> <span id="L30" class="LineNr"> 30 </span> ] <span id="L31" class="LineNr"> 31 </span> run [ -<span id="L32" class="LineNr"> 32 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L32" class="LineNr"> 32 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L33" class="LineNr"> 33 </span> ] <span id="L34" class="LineNr"> 34 </span> <span class="Comment"># it pops back into editor</span> <span id="L35" class="LineNr"> 35 </span> screen-should-contain [ @@ -105,7 +105,7 @@ if ('onhashchange' in window) { <span id="L43" class="LineNr"> 43 </span> <span class="Conceal">¦</span> type <span class="Constant">[0]</span> <span id="L44" class="LineNr"> 44 </span> ] <span id="L45" class="LineNr"> 45 </span> run [ -<span id="L46" class="LineNr"> 46 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L46" class="LineNr"> 46 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L47" class="LineNr"> 47 </span> ] <span id="L48" class="LineNr"> 48 </span> screen-should-contain [ <span id="L49" class="LineNr"> 49 </span> <span class="Conceal">¦</span><span class="Constant"> . run (F4) .</span> @@ -122,13 +122,13 @@ if ('onhashchange' in window) { <span id="L60" class="LineNr"> 60 </span> <span class="Comment"># empty recipes</span> <span id="L61" class="LineNr"> 61 </span> assume-resources [ <span id="L62" class="LineNr"> 62 </span> ] -<span id="L63" class="LineNr"> 63 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[add 2, 2]</span> -<span id="L64" class="LineNr"> 64 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> +<span id="L63" class="LineNr"> 63 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[add 2, 2]</span> +<span id="L64" class="LineNr"> 64 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> <span id="L65" class="LineNr"> 65 </span> <span class="Comment"># run it</span> <span id="L66" class="LineNr"> 66 </span> assume-console [ <span id="L67" class="LineNr"> 67 </span> <span class="Conceal">¦</span> press F4 <span id="L68" class="LineNr"> 68 </span> ] -<span id="L69" class="LineNr"> 69 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L69" class="LineNr"> 69 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L70" class="LineNr"> 70 </span> screen-should-contain [ <span id="L71" class="LineNr"> 71 </span> <span class="Conceal">¦</span><span class="Constant"> . run (F4) .</span> <span id="L72" class="LineNr"> 72 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎ .</span> @@ -144,7 +144,7 @@ if ('onhashchange' in window) { <span id="L82" class="LineNr"> 82 </span> <span class="Conceal">¦</span> left-click<span class="Constant"> 3</span>,<span class="Constant"> 65</span> <span id="L83" class="LineNr"> 83 </span> ] <span id="L84" class="LineNr"> 84 </span> run [ -<span id="L85" class="LineNr"> 85 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L85" class="LineNr"> 85 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L86" class="LineNr"> 86 </span> ] <span id="L87" class="LineNr"> 87 </span> <span class="Comment"># it pops back into editor</span> <span id="L88" class="LineNr"> 88 </span> screen-should-contain [ @@ -158,7 +158,7 @@ if ('onhashchange' in window) { <span id="L96" class="LineNr"> 96 </span> <span class="Conceal">¦</span> type <span class="Constant">[0]</span> <span id="L97" class="LineNr"> 97 </span> ] <span id="L98" class="LineNr"> 98 </span> run [ -<span id="L99" class="LineNr"> 99 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L99" class="LineNr"> 99 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L100" class="LineNr">100 </span> ] <span id="L101" class="LineNr">101 </span> screen-should-contain [ <span id="L102" class="LineNr">102 </span> <span class="Conceal">¦</span><span class="Constant"> . run (F4) .</span> @@ -175,8 +175,8 @@ if ('onhashchange' in window) { <span id="L113" class="LineNr">113 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> edit? <span id="L114" class="LineNr">114 </span> <span class="Conceal">¦</span> edit?, env <span class="Special"><-</span> <a href='008-sandbox-edit.mu.html#L142'>try-edit-sandbox</a> click-row, env <span id="L115" class="LineNr">115 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> edit? -<span id="L116" class="LineNr">116 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> render-sandbox-side <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> -<span id="L117" class="LineNr">117 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L469'>update-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, recipes, current-sandbox, sandbox-in-focus?, env +<span id="L116" class="LineNr">116 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> render-sandbox-side <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> +<span id="L117" class="LineNr">117 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L472'>update-cursor</a> <a href='../081print.mu.html#L16'>screen</a>, recipes, current-sandbox, sandbox-in-focus?, env <span id="L118" class="LineNr">118 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> <span id="L119" class="LineNr">119 </span> <span class="Delimiter">}</span> <span id="L120" class="LineNr">120 </span>] @@ -193,7 +193,7 @@ if ('onhashchange' in window) { <span id="L131" class="LineNr">131 </span> assert first-sandbox, <span class="Constant">[!!]</span> <span id="L132" class="LineNr">132 </span> sandbox-left-margin:num <span class="Special"><-</span> get *first-sandbox, <span class="Constant">left:offset</span> <span id="L133" class="LineNr">133 </span> sandbox-right-margin:num <span class="Special"><-</span> get *first-sandbox, <span class="Constant">right:offset</span> -<span id="L134" class="LineNr">134 </span> edit-button-left:num, edit-button-right:num, _ <span class="Special"><-</span> <a href='005-sandbox.mu.html#L346'>sandbox-menu-columns</a> sandbox-left-margin, sandbox-right-margin +<span id="L134" class="LineNr">134 </span> edit-button-left:num, edit-button-right:num, _ <span class="Special"><-</span> <a href='005-sandbox.mu.html#L373'>sandbox-menu-columns</a> sandbox-left-margin, sandbox-right-margin <span id="L135" class="LineNr">135 </span> edit-button-vertical-area?:bool <span class="Special"><-</span> <a href='006-sandbox-copy.mu.html#L211'>within-range?</a> click-column, edit-button-left, edit-button-right <span id="L136" class="LineNr">136 </span> <span class="muControl">return-unless</span> edit-button-vertical-area?, <span class="Constant">0/false</span> <span id="L137" class="LineNr">137 </span> <span class="Comment"># finally, is sandbox editor empty?</span> @@ -227,19 +227,19 @@ if ('onhashchange' in window) { <span id="L165" class="LineNr">165 </span> assume-resources [ <span id="L166" class="LineNr">166 </span> ] <span id="L167" class="LineNr">167 </span> <span class="Comment"># right editor contains a print instruction</span> -<span id="L168" class="LineNr">168 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[print <a href='../081print.mu.html#L4'>screen</a>, 4]</span> -<span id="L169" class="LineNr">169 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> +<span id="L168" class="LineNr">168 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[print <a href='../081print.mu.html#L16'>screen</a>, 4]</span> +<span id="L169" class="LineNr">169 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> <span id="L170" class="LineNr">170 </span> <span class="Comment"># run the sandbox</span> <span id="L171" class="LineNr">171 </span> assume-console [ <span id="L172" class="LineNr">172 </span> <span class="Conceal">¦</span> press F4 <span id="L173" class="LineNr">173 </span> ] -<span id="L174" class="LineNr">174 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L174" class="LineNr">174 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L175" class="LineNr">175 </span> screen-should-contain [ <span id="L176" class="LineNr">176 </span> <span class="Conceal">¦</span><span class="Constant"> . run (F4) .</span> <span id="L177" class="LineNr">177 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎ .</span> <span id="L178" class="LineNr">178 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> .╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╎─────────────────────────────────────────────────.</span> <span id="L179" class="LineNr">179 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎0 edit copy to recipe delete .</span> -<span id="L180" class="LineNr">180 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎print <a href='../081print.mu.html#L4'>screen</a>, 4 .</span> +<span id="L180" class="LineNr">180 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎print <a href='../081print.mu.html#L16'>screen</a>, 4 .</span> <span id="L181" class="LineNr">181 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎screen: .</span> <span id="L182" class="LineNr">182 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎ .4 . .</span> <span id="L183" class="LineNr">183 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎ . . .</span> @@ -254,11 +254,11 @@ if ('onhashchange' in window) { <span id="L192" class="LineNr">192 </span> <span class="Conceal">¦</span> left-click<span class="Constant"> 3</span>,<span class="Constant"> 65</span> <span id="L193" class="LineNr">193 </span> ] <span id="L194" class="LineNr">194 </span> run [ -<span id="L195" class="LineNr">195 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L195" class="LineNr">195 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L196" class="LineNr">196 </span> ] <span id="L197" class="LineNr">197 </span> screen-should-contain [ <span id="L198" class="LineNr">198 </span> <span class="Conceal">¦</span><span class="Constant"> . run (F4) .</span> -<span id="L199" class="LineNr">199 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎print <a href='../081print.mu.html#L4'>screen</a>, 4 .</span> +<span id="L199" class="LineNr">199 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎print <a href='../081print.mu.html#L16'>screen</a>, 4 .</span> <span id="L200" class="LineNr">200 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> .╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╎─────────────────────────────────────────────────.</span> <span id="L201" class="LineNr">201 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎ .</span> <span id="L202" class="LineNr">202 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎ .</span> @@ -272,8 +272,8 @@ if ('onhashchange' in window) { <span id="L210" class="LineNr">210 </span> <span class="Comment"># initialize environment</span> <span id="L211" class="LineNr">211 </span> assume-resources [ <span id="L212" class="LineNr">212 </span> ] -<span id="L213" class="LineNr">213 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span> -<span id="L214" class="LineNr">214 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> +<span id="L213" class="LineNr">213 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[]</span> +<span id="L214" class="LineNr">214 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> <span id="L215" class="LineNr">215 </span> <span class="Comment"># create 2 sandboxes and scroll to second</span> <span id="L216" class="LineNr">216 </span> assume-console [ <span id="L217" class="LineNr">217 </span> <span class="Conceal">¦</span> press ctrl-n @@ -281,10 +281,10 @@ if ('onhashchange' in window) { <span id="L219" class="LineNr">219 </span> <span class="Conceal">¦</span> press F4 <span id="L220" class="LineNr">220 </span> <span class="Conceal">¦</span> type <span class="Constant">[add 1, 1]</span> <span id="L221" class="LineNr">221 </span> <span class="Conceal">¦</span> press F4 -<span id="L222" class="LineNr">222 </span> <span class="Conceal">¦</span> press <a href='003-shortcuts.mu.html#L3500'>page-down</a> -<span id="L223" class="LineNr">223 </span> <span class="Conceal">¦</span> press <a href='003-shortcuts.mu.html#L3500'>page-down</a> +<span id="L222" class="LineNr">222 </span> <span class="Conceal">¦</span> press <a href='003-shortcuts.mu.html#L3541'>page-down</a> +<span id="L223" class="LineNr">223 </span> <span class="Conceal">¦</span> press <a href='003-shortcuts.mu.html#L3541'>page-down</a> <span id="L224" class="LineNr">224 </span> ] -<span id="L225" class="LineNr">225 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L225" class="LineNr">225 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L226" class="LineNr">226 </span> screen-should-contain [ <span id="L227" class="LineNr">227 </span> <span class="Conceal">¦</span><span class="Constant"> . run (F4) .</span> <span id="L228" class="LineNr">228 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎─────────────────────────────────────────────────.</span> @@ -299,7 +299,7 @@ if ('onhashchange' in window) { <span id="L237" class="LineNr">237 </span> <span class="Conceal">¦</span> left-click<span class="Constant"> 2</span>,<span class="Constant"> 55</span> <span id="L238" class="LineNr">238 </span> ] <span id="L239" class="LineNr">239 </span> run [ -<span id="L240" class="LineNr">240 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L240" class="LineNr">240 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L241" class="LineNr">241 </span> ] <span id="L242" class="LineNr">242 </span> <span class="Comment"># second sandbox shows in editor; scroll resets to display first sandbox</span> <span id="L243" class="LineNr">243 </span> screen-should-contain [ @@ -321,8 +321,8 @@ if ('onhashchange' in window) { <span id="L259" class="LineNr">259 </span> <span class="Comment"># initialize environment</span> <span id="L260" class="LineNr">260 </span> assume-resources [ <span id="L261" class="LineNr">261 </span> ] -<span id="L262" class="LineNr">262 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span> -<span id="L263" class="LineNr">263 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> +<span id="L262" class="LineNr">262 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[]</span> +<span id="L263" class="LineNr">263 </span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> <span id="L264" class="LineNr">264 </span> <span class="Comment"># create 2 sandboxes</span> <span id="L265" class="LineNr">265 </span> assume-console [ <span id="L266" class="LineNr">266 </span> <span class="Conceal">¦</span> press ctrl-n @@ -331,7 +331,7 @@ if ('onhashchange' in window) { <span id="L269" class="LineNr">269 </span> <span class="Conceal">¦</span> type <span class="Constant">[add 1, 1]</span> <span id="L270" class="LineNr">270 </span> <span class="Conceal">¦</span> press F4 <span id="L271" class="LineNr">271 </span> ] -<span id="L272" class="LineNr">272 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L272" class="LineNr">272 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L273" class="LineNr">273 </span> screen-should-contain [ <span id="L274" class="LineNr">274 </span> <span class="Conceal">¦</span><span class="Constant"> . run (F4) .</span> <span id="L275" class="LineNr">275 </span> <span class="Conceal">¦</span><span class="Constant"> . ╎ .</span> @@ -350,7 +350,7 @@ if ('onhashchange' in window) { <span id="L288" class="LineNr">288 </span> <span class="Conceal">¦</span> press F4 <span id="L289" class="LineNr">289 </span> ] <span id="L290" class="LineNr">290 </span> run [ -<span id="L291" class="LineNr">291 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L291" class="LineNr">291 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L292" class="LineNr">292 </span> ] <span id="L293" class="LineNr">293 </span> <span class="Comment"># no change in contents</span> <span id="L294" class="LineNr">294 </span> screen-should-contain [ @@ -367,12 +367,12 @@ if ('onhashchange' in window) { <span id="L305" class="LineNr">305 </span> ] <span id="L306" class="LineNr">306 </span> <span class="Comment"># now try to scroll past end</span> <span id="L307" class="LineNr">307 </span> assume-console [ -<span id="L308" class="LineNr">308 </span> <span class="Conceal">¦</span> press <a href='003-shortcuts.mu.html#L3500'>page-down</a> -<span id="L309" class="LineNr">309 </span> <span class="Conceal">¦</span> press <a href='003-shortcuts.mu.html#L3500'>page-down</a> -<span id="L310" class="LineNr">310 </span> <span class="Conceal">¦</span> press <a href='003-shortcuts.mu.html#L3500'>page-down</a> +<span id="L308" class="LineNr">308 </span> <span class="Conceal">¦</span> press <a href='003-shortcuts.mu.html#L3541'>page-down</a> +<span id="L309" class="LineNr">309 </span> <span class="Conceal">¦</span> press <a href='003-shortcuts.mu.html#L3541'>page-down</a> +<span id="L310" class="LineNr">310 </span> <span class="Conceal">¦</span> press <a href='003-shortcuts.mu.html#L3541'>page-down</a> <span id="L311" class="LineNr">311 </span> ] <span id="L312" class="LineNr">312 </span> run [ -<span id="L313" class="LineNr">313 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L4'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> +<span id="L313" class="LineNr">313 </span> <span class="Conceal">¦</span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a> <span id="L314" class="LineNr">314 </span> ] <span id="L315" class="LineNr">315 </span> <span class="Comment"># screen should show just final sandbox with the right index (1)</span> <span id="L316" class="LineNr">316 </span> screen-should-contain [ |