diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-12-27 20:38:53 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-12-27 20:39:51 -0800 |
commit | f0c55e6b97edf8971ce4adad3ee53cbfa406b7ef (patch) | |
tree | d816e398a5bc38010f277e6677b9de83bc3f2faa /html/edit | |
parent | e82dc626685875d56738e733f7e18203f2ac7f9d (diff) | |
download | mu-f0c55e6b97edf8971ce4adad3ee53cbfa406b7ef.tar.gz |
4165
Diffstat (limited to 'html/edit')
-rw-r--r-- | html/edit/001-editor.mu.html | 24 | ||||
-rw-r--r-- | html/edit/002-typing.mu.html | 40 | ||||
-rw-r--r-- | html/edit/003-shortcuts.mu.html | 124 | ||||
-rw-r--r-- | html/edit/004-programming-environment.mu.html | 18 | ||||
-rw-r--r-- | html/edit/005-sandbox.mu.html | 34 | ||||
-rw-r--r-- | html/edit/006-sandbox-copy.mu.html | 10 | ||||
-rw-r--r-- | html/edit/007-sandbox-delete.mu.html | 4 | ||||
-rw-r--r-- | html/edit/008-sandbox-edit.mu.html | 2 | ||||
-rw-r--r-- | html/edit/009-sandbox-test.mu.html | 10 | ||||
-rw-r--r-- | html/edit/010-sandbox-trace.mu.html | 10 | ||||
-rw-r--r-- | html/edit/011-errors.mu.html | 6 | ||||
-rw-r--r-- | html/edit/012-editor-undo.mu.html | 12 |
12 files changed, 147 insertions, 147 deletions
diff --git a/html/edit/001-editor.mu.html b/html/edit/001-editor.mu.html index 73ae7ae3..ae537bc5 100644 --- a/html/edit/001-editor.mu.html +++ b/html/edit/001-editor.mu.html @@ -225,7 +225,7 @@ if ('onhashchange' in window) { <span id="L161" class="LineNr">161 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, row, column <span id="L162" class="LineNr">162 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr <span id="L163" class="LineNr">163 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L32'>prev</a> <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> <a href='../065duplex_list.mu.html#L32'>prev</a> -<span id="L164" class="LineNr">164 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-character</span> +<span id="L164" class="LineNr">164 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-character</span> <span id="L165" class="LineNr">165 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L166" class="LineNr">166 </span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> <span id="L167" class="LineNr">167 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment"># at right? wrap. even if there's only one more letter left; we need</span> @@ -239,13 +239,13 @@ if ('onhashchange' in window) { <span id="L175" class="LineNr">175 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> <span id="L176" class="LineNr">176 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, row, column <span id="L177" class="LineNr">177 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment"># don't increment curr</span> -<span id="L178" class="LineNr">178 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-character</span> +<span id="L178" class="LineNr">178 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-character</span> <span id="L179" class="LineNr">179 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L180" class="LineNr">180 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, c, color <span id="L181" class="LineNr">181 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr <span id="L182" class="LineNr">182 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L32'>prev</a> <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> <a href='../065duplex_list.mu.html#L32'>prev</a> <span id="L183" class="LineNr">183 </span> <span class="Conceal">¦</span> column <span class="Special"><-</span> add column,<span class="Constant"> 1</span> -<span id="L184" class="LineNr">184 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L184" class="LineNr">184 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L185" class="LineNr">185 </span> <span class="Delimiter">}</span> <span id="L186" class="LineNr">186 </span> <span class="Comment"># save first character off-screen</span> <span id="L187" class="LineNr">187 </span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">bottom-of-screen:offset</span>, curr @@ -265,7 +265,7 @@ if ('onhashchange' in window) { <span id="L201" class="LineNr">201 </span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-row:offset</span>, cursor-row <span id="L202" class="LineNr">202 </span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-column:offset</span>, cursor-column <span id="L203" class="LineNr">203 </span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">before-cursor:offset</span>, before-cursor -<span id="L204" class="LineNr">204 </span> <span class="muControl">return</span> row, column +<span id="L204" class="LineNr">204 </span> <span class="muControl"> return</span> row, column <span id="L205" class="LineNr">205 </span>] <span id="L206" class="LineNr">206 </span> <span id="L207" class="LineNr">207 </span><span class="muRecipe">def</span> <a href='001-editor.mu.html#L207'>clear-screen-from</a> <a href='../081print.mu.html#L16'>screen</a>:&:<a href='../081print.mu.html#L16'>screen</a>, row:num, column:num, left:num, right:num<span class="muRecipe"> -> </span><a href='../081print.mu.html#L16'>screen</a>:&:<a href='../081print.mu.html#L16'>screen</a> [ @@ -276,7 +276,7 @@ if ('onhashchange' in window) { <span id="L212" class="LineNr">212 </span> <span class="Delimiter">{</span> <span id="L213" class="LineNr">213 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> <a href='../081print.mu.html#L16'>screen</a> <span id="L214" class="LineNr">214 </span> <span class="Conceal">¦</span> clear-display-from row, column, left, right -<span id="L215" class="LineNr">215 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L215" class="LineNr">215 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L216" class="LineNr">216 </span> <span class="Delimiter">}</span> <span id="L217" class="LineNr">217 </span> <span class="Comment"># if not, go the slower route</span> <span id="L218" class="LineNr">218 </span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, row, column @@ -292,7 +292,7 @@ if ('onhashchange' in window) { <span id="L228" class="LineNr">228 </span> <span class="Delimiter">{</span> <span id="L229" class="LineNr">229 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> <a href='../081print.mu.html#L16'>screen</a> <span id="L230" class="LineNr">230 </span> <span class="Conceal">¦</span> clear-display-from row, left, left, right -<span id="L231" class="LineNr">231 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L231" class="LineNr">231 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L232" class="LineNr">232 </span> <span class="Delimiter">}</span> <span id="L233" class="LineNr">233 </span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, row, left <span id="L234" class="LineNr">234 </span> <a href='../081print.mu.html#L782'>screen-height</a>:num <span class="Special"><-</span> <a href='../081print.mu.html#L782'>screen-height</a> <a href='../081print.mu.html#L16'>screen</a> @@ -302,7 +302,7 @@ if ('onhashchange' in window) { <span id="L238" class="LineNr">238 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, row, left <span id="L239" class="LineNr">239 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L553'>clear-line-until</a> <a href='../081print.mu.html#L16'>screen</a>, right <span id="L240" class="LineNr">240 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> -<span id="L241" class="LineNr">241 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L241" class="LineNr">241 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L242" class="LineNr">242 </span> <span class="Delimiter">}</span> <span id="L243" class="LineNr">243 </span>] <span id="L244" class="LineNr">244 </span> @@ -468,7 +468,7 @@ if ('onhashchange' in window) { <span id="L404" class="LineNr">404 </span> <span class="Conceal">¦</span> starting-comment?:bool <span class="Special"><-</span> equal c, <span class="Constant">35/#</span> <span id="L405" class="LineNr">405 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> starting-comment? <span id="L406" class="LineNr">406 </span> <span class="Conceal">¦</span> trace<span class="Constant"> 90</span>, <span class="Constant">[app]</span>, <span class="Constant">[switch color back to blue]</span> -<span id="L407" class="LineNr">407 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">12/lightblue</span> +<span id="L407" class="LineNr">407 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">12/lightblue</span> <span id="L408" class="LineNr">408 </span> <span class="Delimiter">}</span> <span id="L409" class="LineNr">409 </span> <span class="Comment"># if color is blue and next character is newline, switch color to white</span> <span id="L410" class="LineNr">410 </span> <span class="Delimiter">{</span> @@ -477,14 +477,14 @@ if ('onhashchange' in window) { <span id="L413" class="LineNr">413 </span> <span class="Conceal">¦</span> ending-comment?:bool <span class="Special"><-</span> equal c, <span class="Constant">10/newline</span> <span id="L414" class="LineNr">414 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> ending-comment? <span id="L415" class="LineNr">415 </span> <span class="Conceal">¦</span> trace<span class="Constant"> 90</span>, <span class="Constant">[app]</span>, <span class="Constant">[switch color back to white]</span> -<span id="L416" class="LineNr">416 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">7/white</span> +<span id="L416" class="LineNr">416 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">7/white</span> <span id="L417" class="LineNr">417 </span> <span class="Delimiter">}</span> <span id="L418" class="LineNr">418 </span> <span class="Comment"># if color is white (no comments) and next character is '<', switch color to red</span> <span id="L419" class="LineNr">419 </span> <span class="Delimiter">{</span> <span id="L420" class="LineNr">420 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> color-is-white? <span id="L421" class="LineNr">421 </span> <span class="Conceal">¦</span> starting-assignment?:bool <span class="Special"><-</span> equal c, <span class="Constant">60/<</span> <span id="L422" class="LineNr">422 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> starting-assignment? -<span id="L423" class="LineNr">423 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">1/red</span> +<span id="L423" class="LineNr">423 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">1/red</span> <span id="L424" class="LineNr">424 </span> <span class="Delimiter">}</span> <span id="L425" class="LineNr">425 </span> <span class="Comment"># if color is red and next character is space, switch color to white</span> <span id="L426" class="LineNr">426 </span> <span class="Delimiter">{</span> @@ -492,10 +492,10 @@ if ('onhashchange' in window) { <span id="L428" class="LineNr">428 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> color-is-red? <span id="L429" class="LineNr">429 </span> <span class="Conceal">¦</span> ending-assignment?:bool <span class="Special"><-</span> equal c, <span class="Constant">32/space</span> <span id="L430" class="LineNr">430 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> ending-assignment? -<span id="L431" class="LineNr">431 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">7/white</span> +<span id="L431" class="LineNr">431 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">7/white</span> <span id="L432" class="LineNr">432 </span> <span class="Delimiter">}</span> <span id="L433" class="LineNr">433 </span> <span class="Comment"># otherwise no change</span> -<span id="L434" class="LineNr">434 </span> <span class="muControl">return</span> color +<span id="L434" class="LineNr">434 </span> <span class="muControl"> return</span> color <span id="L435" class="LineNr">435 </span>] <span id="L436" class="LineNr">436 </span> <span id="L437" class="LineNr">437 </span><span class="muScenario">scenario</span> render-colors-assignment [ diff --git a/html/edit/002-typing.mu.html b/html/edit/002-typing.mu.html index e05555a2..477bee1d 100644 --- a/html/edit/002-typing.mu.html +++ b/html/edit/002-typing.mu.html @@ -94,7 +94,7 @@ if ('onhashchange' in window) { <span id="L31" class="LineNr"> 31 </span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> <span id="L32" class="LineNr"> 32 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> is-touch? <span id="L33" class="LineNr"> 33 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> move-cursor editor, <a href='../081print.mu.html#L16'>screen</a>, t -<span id="L34" class="LineNr"> 34 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> +<span id="L34" class="LineNr"> 34 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-event</span> <span id="L35" class="LineNr"> 35 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L36" class="LineNr"> 36 </span> <span class="Conceal">¦</span> <span class="Comment"># keyboard events</span> <span id="L37" class="LineNr"> 37 </span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> @@ -105,7 +105,7 @@ if ('onhashchange' in window) { <span id="L42" class="LineNr"> 42 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='002-typing.mu.html#L265'>editor-render</a> <a href='../081print.mu.html#L16'>screen</a>, editor <span id="L43" class="LineNr"> 43 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L44" class="LineNr"> 44 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> -<span id="L45" class="LineNr"> 45 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L45" class="LineNr"> 45 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L46" class="LineNr"> 46 </span> <span class="Delimiter">}</span> <span id="L47" class="LineNr"> 47 </span>] <span id="L48" class="LineNr"> 48 </span> @@ -129,7 +129,7 @@ if ('onhashchange' in window) { <span id="L66" class="LineNr"> 66 </span> undo-coalesce-tag:num <span class="Special"><-</span> copy <span class="Constant">0/never</span> <span id="L67" class="LineNr"> 67 </span><span class="Constant"> <end-move-cursor></span> <span id="L68" class="LineNr"> 68 </span> <span class="Comment"># gain focus</span> -<span id="L69" class="LineNr"> 69 </span> <span class="muControl">return</span> <span class="Constant">1/true</span> +<span id="L69" class="LineNr"> 69 </span> <span class="muControl"> return</span> <span class="Constant">1/true</span> <span id="L70" class="LineNr"> 70 </span>] <span id="L71" class="LineNr"> 71 </span> <span id="L72" class="LineNr"> 72 </span><span class="Comment"># Variant of 'render' that only moves the cursor (coordinates and</span> @@ -190,7 +190,7 @@ if ('onhashchange' in window) { <span id="L127" class="LineNr"> 127 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> column <span class="Special"><-</span> copy left <span id="L128" class="LineNr"> 128 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr <span id="L129" class="LineNr"> 129 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L32'>prev</a> <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> <a href='../065duplex_list.mu.html#L32'>prev</a> -<span id="L130" class="LineNr"> 130 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-character</span> +<span id="L130" class="LineNr"> 130 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-character</span> <span id="L131" class="LineNr"> 131 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L132" class="LineNr"> 132 </span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> <span id="L133" class="LineNr"> 133 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment"># at right? wrap. even if there's only one more letter left; we need</span> @@ -200,12 +200,12 @@ if ('onhashchange' in window) { <span id="L137" class="LineNr"> 137 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> column <span class="Special"><-</span> copy left <span id="L138" class="LineNr"> 138 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> <span id="L139" class="LineNr"> 139 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment"># don't increment curr/prev</span> -<span id="L140" class="LineNr"> 140 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-character</span> +<span id="L140" class="LineNr"> 140 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-character</span> <span id="L141" class="LineNr"> 141 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L142" class="LineNr"> 142 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr <span id="L143" class="LineNr"> 143 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L32'>prev</a> <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> <a href='../065duplex_list.mu.html#L32'>prev</a> <span id="L144" class="LineNr"> 144 </span> <span class="Conceal">¦</span> column <span class="Special"><-</span> add column,<span class="Constant"> 1</span> -<span id="L145" class="LineNr"> 145 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L145" class="LineNr"> 145 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L146" class="LineNr"> 146 </span> <span class="Delimiter">}</span> <span id="L147" class="LineNr"> 147 </span> <span class="Comment"># is cursor to the right of the last line? move to end</span> <span id="L148" class="LineNr"> 148 </span> <span class="Delimiter">{</span> @@ -253,14 +253,14 @@ if ('onhashchange' in window) { <span id="L190" class="LineNr"> 190 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <begin-insert-character></span> <span id="L191" class="LineNr"> 191 </span> <span class="Conceal">¦</span> go-render? <span class="Special"><-</span> <a href='002-typing.mu.html#L203'>insert-at-cursor</a> editor, c, <a href='../081print.mu.html#L16'>screen</a> <span id="L192" class="LineNr"> 192 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-insert-character></span> -<span id="L193" class="LineNr"> 193 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L193" class="LineNr"> 193 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L194" class="LineNr"> 194 </span> <span class="Delimiter">}</span> <span id="L195" class="LineNr"> 195 </span> <span class="Comment"># special key to modify the text or move the cursor</span> <span id="L196" class="LineNr"> 196 </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="L197" class="LineNr"> 197 </span> assert is-keycode?, <span class="Constant">[event was of unknown type; neither keyboard nor mouse]</span> <span id="L198" class="LineNr"> 198 </span> <span class="Comment"># handlers for each special key will go here</span> <span id="L199" class="LineNr"> 199 </span><span class="Constant"> <a href='002-typing.mu.html#L199'><handle-special-key></a></span> -<span id="L200" class="LineNr"> 200 </span> <span class="muControl">return</span> <span class="Constant">1/go-render</span> +<span id="L200" class="LineNr"> 200 </span> <span class="muControl"> return</span> <span class="Constant">1/go-render</span> <span id="L201" class="LineNr"> 201 </span>] <span id="L202" class="LineNr"> 202 </span> <span id="L203" class="LineNr"> 203 </span><span class="muRecipe">def</span> <a href='002-typing.mu.html#L203'>insert-at-cursor</a> editor:&:editor, c:char, <a href='../081print.mu.html#L16'>screen</a>:&:<a href='../081print.mu.html#L16'>screen</a><span class="muRecipe"> -> </span>go-render?:bool, editor:&:editor, <a href='../081print.mu.html#L16'>screen</a>:&:<a href='../081print.mu.html#L16'>screen</a> [ @@ -295,7 +295,7 @@ if ('onhashchange' in window) { <span id="L232" class="LineNr"> 232 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> overflow? <span id="L233" class="LineNr"> 233 </span> <span class="Conceal">¦</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, save-row, save-column <span id="L234" class="LineNr"> 234 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, c -<span id="L235" class="LineNr"> 235 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">0/don't-render</span> +<span id="L235" class="LineNr"> 235 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">0/don't-render</span> <span id="L236" class="LineNr"> 236 </span> <span class="Delimiter">}</span> <span id="L237" class="LineNr"> 237 </span> <span class="Delimiter">{</span> <span id="L238" class="LineNr"> 238 </span> <span class="Conceal">¦</span> <span class="Comment"># not at right margin? print the character and rest of line</span> @@ -317,11 +317,11 @@ if ('onhashchange' in window) { <span id="L254" class="LineNr"> 254 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, currc <span id="L255" class="LineNr"> 255 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> curr-column <span class="Special"><-</span> add curr-column,<span class="Constant"> 1</span> <span id="L256" class="LineNr"> 256 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr -<span id="L257" class="LineNr"> 257 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L257" class="LineNr"> 257 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L258" class="LineNr"> 258 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> -<span id="L259" class="LineNr"> 259 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">0/don't-render</span> +<span id="L259" class="LineNr"> 259 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">0/don't-render</span> <span id="L260" class="LineNr"> 260 </span> <span class="Delimiter">}</span> -<span id="L261" class="LineNr"> 261 </span> <span class="muControl">return</span> <span class="Constant">1/go-render</span> +<span id="L261" class="LineNr"> 261 </span> <span class="muControl"> return</span> <span class="Constant">1/go-render</span> <span id="L262" class="LineNr"> 262 </span>] <span id="L263" class="LineNr"> 263 </span> <span id="L264" class="LineNr"> 264 </span><span class="Comment"># helper for tests</span> @@ -800,7 +800,7 @@ if ('onhashchange' in window) { <span id="L737" class="LineNr"> 737 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> below-screen? <span id="L738" class="LineNr"> 738 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <scroll-down></span> <span id="L739" class="LineNr"> 739 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> -<span id="L740" class="LineNr"> 740 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">1/go-render</span> +<span id="L740" class="LineNr"> 740 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">1/go-render</span> <span id="L741" class="LineNr"> 741 </span> <span class="Delimiter">}</span> <span id="L742" class="LineNr"> 742 </span>] <span id="L743" class="LineNr"> 743 </span> @@ -924,7 +924,7 @@ if ('onhashchange' in window) { <span id="L861" class="LineNr"> 861 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <a href='002-typing.mu.html#L861'><begin-insert-enter></a></span> <span id="L862" class="LineNr"> 862 </span> <span class="Conceal">¦</span> <a href='002-typing.mu.html#L868'>insert-new-line-and-indent</a> editor, <a href='../081print.mu.html#L16'>screen</a> <span id="L863" class="LineNr"> 863 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <a href='002-typing.mu.html#L863'><end-insert-enter></a></span> -<span id="L864" class="LineNr"> 864 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">1/go-render</span> +<span id="L864" class="LineNr"> 864 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">1/go-render</span> <span id="L865" class="LineNr"> 865 </span> <span class="Delimiter">}</span> <span id="L866" class="LineNr"> 866 </span>] <span id="L867" class="LineNr"> 867 </span> @@ -970,7 +970,7 @@ if ('onhashchange' in window) { <span id="L907" class="LineNr"> 907 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> indent-done? <span id="L908" class="LineNr"> 908 </span> <span class="Conceal">¦</span> <a href='002-typing.mu.html#L203'>insert-at-cursor</a> editor, <span class="Constant">32/space</span>, <a href='../081print.mu.html#L16'>screen</a> <span id="L909" class="LineNr"> 909 </span> <span class="Conceal">¦</span> i <span class="Special"><-</span> add i,<span class="Constant"> 1</span> -<span id="L910" class="LineNr"> 910 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L910" class="LineNr"> 910 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L911" class="LineNr"> 911 </span> <span class="Delimiter">}</span> <span id="L912" class="LineNr"> 912 </span>] <span id="L913" class="LineNr"> 913 </span> @@ -989,7 +989,7 @@ if ('onhashchange' in window) { <span id="L926" class="LineNr"> 926 </span> <span class="muControl">return-if</span> cursor-after-newline?, <span class="Constant">0/false</span> <span id="L927" class="LineNr"> 927 </span> <span class="Comment"># if cursor is at left margin and not at start, but previous character is not a newline,</span> <span id="L928" class="LineNr"> 928 </span> <span class="Comment"># then we're at start of a wrapped line</span> -<span id="L929" class="LineNr"> 929 </span> <span class="muControl">return</span> <span class="Constant">1/true</span> +<span id="L929" class="LineNr"> 929 </span> <span class="muControl"> return</span> <span class="Constant">1/true</span> <span id="L930" class="LineNr"> 930 </span>] <span id="L931" class="LineNr"> 931 </span> <span id="L932" class="LineNr"> 932 </span><span class="Comment"># takes a pointer 'curr' into the doubly-linked list and its sentinel, counts</span> @@ -1020,7 +1020,7 @@ if ('onhashchange' in window) { <span id="L957" class="LineNr"> 957 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> is-space? <span id="L958" class="LineNr"> 958 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> result <span class="Special"><-</span> copy<span class="Constant"> 0</span> <span id="L959" class="LineNr"> 959 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> -<span id="L960" class="LineNr"> 960 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L960" class="LineNr"> 960 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L961" class="LineNr"> 961 </span> <span class="Delimiter">}</span> <span id="L962" class="LineNr"> 962 </span>] <span id="L963" class="LineNr"> 963 </span> @@ -1161,7 +1161,7 @@ if ('onhashchange' in window) { <span id="L1098" class="LineNr">1098 </span> <span class="Conceal">¦</span> paste-start?:bool <span class="Special"><-</span> equal k, <span class="Constant">65507/paste-start</span> <span id="L1099" class="LineNr">1099 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> paste-start? <span id="L1100" class="LineNr">1100 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">indent?:offset</span>, <span class="Constant">0/false</span> -<span id="L1101" class="LineNr">1101 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">1/go-render</span> +<span id="L1101" class="LineNr">1101 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">1/go-render</span> <span id="L1102" class="LineNr">1102 </span> <span class="Delimiter">}</span> <span id="L1103" class="LineNr">1103 </span>] <span id="L1104" class="LineNr">1104 </span> @@ -1170,7 +1170,7 @@ if ('onhashchange' in window) { <span id="L1107" class="LineNr">1107 </span> <span class="Conceal">¦</span> paste-end?:bool <span class="Special"><-</span> equal k, <span class="Constant">65506/paste-end</span> <span id="L1108" class="LineNr">1108 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> paste-end? <span id="L1109" class="LineNr">1109 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">indent?:offset</span>, <span class="Constant">1/true</span> -<span id="L1110" class="LineNr">1110 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">1/go-render</span> +<span id="L1110" class="LineNr">1110 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">1/go-render</span> <span id="L1111" class="LineNr">1111 </span> <span class="Delimiter">}</span> <span id="L1112" class="LineNr">1112 </span>] <span id="L1113" class="LineNr">1113 </span> @@ -1204,7 +1204,7 @@ if ('onhashchange' in window) { <span id="L1141" class="LineNr">1141 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> continue? <span id="L1142" class="LineNr">1142 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, style, color, bg-color <span id="L1143" class="LineNr">1143 </span> <span class="Conceal">¦</span> x <span class="Special"><-</span> add x,<span class="Constant"> 1</span> -<span id="L1144" class="LineNr">1144 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L1144" class="LineNr">1144 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L1145" class="LineNr">1145 </span> <span class="Delimiter">}</span> <span id="L1146" class="LineNr">1146 </span>] </pre> diff --git a/html/edit/003-shortcuts.mu.html b/html/edit/003-shortcuts.mu.html index 89d573d7..ce5f7289 100644 --- a/html/edit/003-shortcuts.mu.html +++ b/html/edit/003-shortcuts.mu.html @@ -120,7 +120,7 @@ if ('onhashchange' in window) { <span id="L58" class="LineNr"> 58 </span> <span class="Conceal">¦</span> <a href='002-typing.mu.html#L203'>insert-at-cursor</a> editor, <span class="Constant">32/space</span>, <a href='../081print.mu.html#L16'>screen</a> <span id="L59" class="LineNr"> 59 </span> <span class="Conceal">¦</span> go-render? <span class="Special"><-</span> <a href='002-typing.mu.html#L203'>insert-at-cursor</a> editor, <span class="Constant">32/space</span>, <a href='../081print.mu.html#L16'>screen</a> <span id="L60" class="LineNr"> 60 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-insert-character></span> -<span id="L61" class="LineNr"> 61 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L61" class="LineNr"> 61 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L62" class="LineNr"> 62 </span> <span class="Delimiter">}</span> <span id="L63" class="LineNr"> 63 </span>] <span id="L64" class="LineNr"> 64 </span> @@ -161,7 +161,7 @@ if ('onhashchange' in window) { <span id="L99" class="LineNr"> 99 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <a href='003-shortcuts.mu.html#L99'><begin-backspace-character></a></span> <span id="L100" class="LineNr"> 100 </span> <span class="Conceal">¦</span> go-render?:bool, backspaced-cell:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special"><-</span> <a href='003-shortcuts.mu.html#L109'>delete-before-cursor</a> editor, <a href='../081print.mu.html#L16'>screen</a> <span id="L101" class="LineNr"> 101 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <a href='003-shortcuts.mu.html#L101'><end-backspace-character></a></span> -<span id="L102" class="LineNr"> 102 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L102" class="LineNr"> 102 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L103" class="LineNr"> 103 </span> <span class="Delimiter">}</span> <span id="L104" class="LineNr"> 104 </span>] <span id="L105" class="LineNr"> 105 </span> @@ -207,7 +207,7 @@ if ('onhashchange' in window) { <span id="L145" class="LineNr"> 145 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> print <a href='../081print.mu.html#L16'>screen</a>, currc <span id="L146" class="LineNr"> 146 </span> <span class="Conceal">¦</span> curr-column <span class="Special"><-</span> add curr-column,<span class="Constant"> 1</span> <span id="L147" class="LineNr"> 147 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr -<span id="L148" class="LineNr"> 148 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L148" class="LineNr"> 148 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L149" class="LineNr"> 149 </span> <span class="Delimiter">}</span> <span id="L150" class="LineNr"> 150 </span> <span class="Comment"># we're guaranteed not to be at the right margin</span> <span id="L151" class="LineNr"> 151 </span> space:char <span class="Special"><-</span> copy <span class="Constant">32/space</span> @@ -230,7 +230,7 @@ if ('onhashchange' in window) { <span id="L168" class="LineNr"> 168 </span> <span class="Conceal">¦</span> trace<span class="Constant"> 10</span>, <span class="Constant">[app]</span>, <span class="Constant">[decrementing cursor column]</span> <span id="L169" class="LineNr"> 169 </span> <span class="Conceal">¦</span> cursor-column <span class="Special"><-</span> subtract cursor-column,<span class="Constant"> 1</span> <span id="L170" class="LineNr"> 170 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-column:offset</span>, cursor-column -<span id="L171" class="LineNr"> 171 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L171" class="LineNr"> 171 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L172" class="LineNr"> 172 </span> <span class="Delimiter">}</span> <span id="L173" class="LineNr"> 173 </span> <span class="Comment"># if at left margin, we must move to previous row:</span> <span id="L174" class="LineNr"> 174 </span> top-of-screen?:bool <span class="Special"><-</span> equal cursor-row,<span class="Constant"> 1</span> <span class="Comment"># exclude menu bar</span> @@ -267,7 +267,7 @@ if ('onhashchange' in window) { <span id="L205" class="LineNr"> 205 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> cursor-column <span class="Special"><-</span> add left, end-of-line <span id="L206" class="LineNr"> 206 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-column:offset</span>, cursor-column <span id="L207" class="LineNr"> 207 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> -<span id="L208" class="LineNr"> 208 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L208" class="LineNr"> 208 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L209" class="LineNr"> 209 </span> <span class="Delimiter">}</span> <span id="L210" class="LineNr"> 210 </span> <span class="Comment"># case 2: if previous-character was not newline, we're just at a wrapped line</span> <span id="L211" class="LineNr"> 211 </span> trace<span class="Constant"> 10</span>, <span class="Constant">[app]</span>, <span class="Constant">[wrapping to previous line]</span> @@ -294,7 +294,7 @@ if ('onhashchange' in window) { <span id="L232" class="LineNr"> 232 </span> <span class="Conceal">¦</span> at-newline?:bool <span class="Special"><-</span> equal c, <span class="Constant">10/newline</span> <span id="L233" class="LineNr"> 233 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> at-newline? <span id="L234" class="LineNr"> 234 </span> <span class="Conceal">¦</span> result <span class="Special"><-</span> add result,<span class="Constant"> 1</span> -<span id="L235" class="LineNr"> 235 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L235" class="LineNr"> 235 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L236" class="LineNr"> 236 </span> <span class="Delimiter">}</span> <span id="L237" class="LineNr"> 237 </span>] <span id="L238" class="LineNr"> 238 </span> @@ -428,7 +428,7 @@ if ('onhashchange' in window) { <span id="L366" class="LineNr"> 366 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <a href='003-shortcuts.mu.html#L366'><begin-delete-character></a></span> <span id="L367" class="LineNr"> 367 </span> <span class="Conceal">¦</span> go-render?:bool, deleted-cell:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special"><-</span> <a href='003-shortcuts.mu.html#L373'>delete-at-cursor</a> editor, <a href='../081print.mu.html#L16'>screen</a> <span id="L368" class="LineNr"> 368 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <a href='003-shortcuts.mu.html#L368'><end-delete-character></a></span> -<span id="L369" class="LineNr"> 369 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L369" class="LineNr"> 369 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L370" class="LineNr"> 370 </span> <span class="Delimiter">}</span> <span id="L371" class="LineNr"> 371 </span>] <span id="L372" class="LineNr"> 372 </span> @@ -461,7 +461,7 @@ if ('onhashchange' in window) { <span id="L399" class="LineNr"> 399 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> print <a href='../081print.mu.html#L16'>screen</a>, currc <span id="L400" class="LineNr"> 400 </span> <span class="Conceal">¦</span> curr-column <span class="Special"><-</span> add curr-column,<span class="Constant"> 1</span> <span id="L401" class="LineNr"> 401 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr -<span id="L402" class="LineNr"> 402 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L402" class="LineNr"> 402 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L403" class="LineNr"> 403 </span> <span class="Delimiter">}</span> <span id="L404" class="LineNr"> 404 </span> <span class="Comment"># we're guaranteed not to be at the right margin</span> <span id="L405" class="LineNr"> 405 </span> space:char <span class="Special"><-</span> copy <span class="Constant">32/space</span> @@ -508,7 +508,7 @@ if ('onhashchange' in window) { <span id="L446" class="LineNr"> 446 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, cursor-row, cursor-column <span id="L447" class="LineNr"> 447 </span> <span class="Conceal">¦</span> undo-coalesce-tag:num <span class="Special"><-</span> copy <span class="Constant">2/right-arrow</span> <span id="L448" class="LineNr"> 448 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> -<span id="L449" class="LineNr"> 449 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L449" class="LineNr"> 449 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L450" class="LineNr"> 450 </span> <span class="Delimiter">}</span> <span id="L451" class="LineNr"> 451 </span>] <span id="L452" class="LineNr"> 452 </span> @@ -534,7 +534,7 @@ if ('onhashchange' in window) { <span id="L472" class="LineNr"> 472 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <scroll-down></span> <span id="L473" class="LineNr"> 473 </span> <span class="Conceal">¦</span> cursor-row <span class="Special"><-</span> subtract cursor-row,<span class="Constant"> 1</span> <span class="Comment"># bring back into screen range</span> <span id="L474" class="LineNr"> 474 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-row:offset</span>, cursor-row -<span id="L475" class="LineNr"> 475 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">1/go-render</span> +<span id="L475" class="LineNr"> 475 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">1/go-render</span> <span id="L476" class="LineNr"> 476 </span> <span class="Delimiter">}</span> <span id="L477" class="LineNr"> 477 </span> <span class="Comment"># if the line wraps, move cursor to start of next row</span> <span id="L478" class="LineNr"> 478 </span> <span class="Delimiter">{</span> @@ -557,7 +557,7 @@ if ('onhashchange' in window) { <span id="L495" class="LineNr"> 495 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <scroll-down></span> <span id="L496" class="LineNr"> 496 </span> <span class="Conceal">¦</span> cursor-row <span class="Special"><-</span> subtract cursor-row,<span class="Constant"> 1</span> <span class="Comment"># bring back into screen range</span> <span id="L497" class="LineNr"> 497 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-row:offset</span>, cursor-row -<span id="L498" class="LineNr"> 498 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">1/go-render</span> +<span id="L498" class="LineNr"> 498 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">1/go-render</span> <span id="L499" class="LineNr"> 499 </span> <span class="Delimiter">}</span> <span id="L500" class="LineNr"> 500 </span> <span class="Comment"># otherwise move cursor one character right</span> <span id="L501" class="LineNr"> 501 </span> cursor-column <span class="Special"><-</span> add cursor-column,<span class="Constant"> 1</span> @@ -791,7 +791,7 @@ if ('onhashchange' in window) { <span id="L729" class="LineNr"> 729 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">before-cursor:offset</span>, before-cursor <span id="L730" class="LineNr"> 730 </span> <span class="Conceal">¦</span> undo-coalesce-tag:num <span class="Special"><-</span> copy <span class="Constant">1/left-arrow</span> <span id="L731" class="LineNr"> 731 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> -<span id="L732" class="LineNr"> 732 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L732" class="LineNr"> 732 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L733" class="LineNr"> 733 </span> <span class="Delimiter">}</span> <span id="L734" class="LineNr"> 734 </span>] <span id="L735" class="LineNr"> 735 </span> @@ -1055,7 +1055,7 @@ if ('onhashchange' in window) { <span id="L993" class="LineNr"> 993 </span> <span class="Conceal">¦</span> go-render? <span class="Special"><-</span> <a href='003-shortcuts.mu.html#L1000'>move-to-previous-line</a> editor <span id="L994" class="LineNr"> 994 </span> <span class="Conceal">¦</span> undo-coalesce-tag:num <span class="Special"><-</span> copy <span class="Constant">3/up-arrow</span> <span id="L995" class="LineNr"> 995 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> -<span id="L996" class="LineNr"> 996 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L996" class="LineNr"> 996 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L997" class="LineNr"> 997 </span> <span class="Delimiter">}</span> <span id="L998" class="LineNr"> 998 </span>] <span id="L999" class="LineNr"> 999 </span> @@ -1110,15 +1110,15 @@ if ('onhashchange' in window) { <span id="L1048" class="LineNr">1048 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">before-cursor:offset</span>, before-cursor <span id="L1049" class="LineNr">1049 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> cursor-column <span class="Special"><-</span> add cursor-column,<span class="Constant"> 1</span> <span id="L1050" class="LineNr">1050 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-column:offset</span>, cursor-column -<span id="L1051" class="LineNr">1051 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L1051" class="LineNr">1051 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L1052" class="LineNr">1052 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> -<span id="L1053" class="LineNr">1053 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L1053" class="LineNr">1053 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L1054" class="LineNr">1054 </span> <span class="Delimiter">}</span> <span id="L1055" class="LineNr">1055 </span> <span class="Delimiter">{</span> <span id="L1056" class="LineNr">1056 </span> <span class="Conceal">¦</span> <span class="Comment"># if cursor already at top, scroll up</span> <span id="L1057" class="LineNr">1057 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> already-at-top? <span id="L1058" class="LineNr">1058 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <scroll-up></span> -<span id="L1059" class="LineNr">1059 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">1/go-render</span> +<span id="L1059" class="LineNr">1059 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">1/go-render</span> <span id="L1060" class="LineNr">1060 </span> <span class="Delimiter">}</span> <span id="L1061" class="LineNr">1061 </span>] <span id="L1062" class="LineNr">1062 </span> @@ -1409,7 +1409,7 @@ if ('onhashchange' in window) { <span id="L1347" class="LineNr">1347 </span> <span class="Conceal">¦</span> go-render? <span class="Special"><-</span> <a href='003-shortcuts.mu.html#L1354'>move-to-next-line</a> editor, <a href='../081print.mu.html#L782'>screen-height</a> <span id="L1348" class="LineNr">1348 </span> <span class="Conceal">¦</span> undo-coalesce-tag:num <span class="Special"><-</span> copy <span class="Constant">4/down-arrow</span> <span id="L1349" class="LineNr">1349 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> -<span id="L1350" class="LineNr">1350 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L1350" class="LineNr">1350 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L1351" class="LineNr">1351 </span> <span class="Delimiter">}</span> <span id="L1352" class="LineNr">1352 </span>] <span id="L1353" class="LineNr">1353 </span> @@ -1428,11 +1428,11 @@ if ('onhashchange' in window) { <span id="L1366" class="LineNr">1366 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> before-cursor <span id="L1367" class="LineNr">1367 </span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> <span id="L1368" class="LineNr">1368 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> at-bottom-of-screen? -<span id="L1369" class="LineNr">1369 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">0/don't-render</span> +<span id="L1369" class="LineNr">1369 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">0/don't-render</span> <span id="L1370" class="LineNr">1370 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L1371" class="LineNr">1371 </span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> <span id="L1372" class="LineNr">1372 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> at-bottom-of-screen? -<span id="L1373" class="LineNr">1373 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">jump</span> <span class="Constant">+try-to-scroll</span> +<span id="L1373" class="LineNr">1373 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> jump</span> <span class="Constant">+try-to-scroll</span> <span id="L1374" class="LineNr">1374 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L1375" class="LineNr">1375 </span> <span class="Delimiter">}</span> <span id="L1376" class="LineNr">1376 </span> <a href='../065duplex_list.mu.html#L25'>next</a>:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> before-cursor @@ -1440,11 +1440,11 @@ if ('onhashchange' in window) { <span id="L1378" class="LineNr">1378 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> <a href='../065duplex_list.mu.html#L25'>next</a> <span id="L1379" class="LineNr">1379 </span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> <span id="L1380" class="LineNr">1380 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> at-bottom-of-screen? -<span id="L1381" class="LineNr">1381 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">0/don't-render</span> +<span id="L1381" class="LineNr">1381 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">0/don't-render</span> <span id="L1382" class="LineNr">1382 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L1383" class="LineNr">1383 </span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> <span id="L1384" class="LineNr">1384 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> at-bottom-of-screen? -<span id="L1385" class="LineNr">1385 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">jump</span> <span class="Constant">+try-to-scroll</span> +<span id="L1385" class="LineNr">1385 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> jump</span> <span class="Constant">+try-to-scroll</span> <span id="L1386" class="LineNr">1386 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L1387" class="LineNr">1387 </span> <span class="Delimiter">}</span> <span id="L1388" class="LineNr">1388 </span> already-at-bottom?:bool <span class="Special"><-</span> greater-or-equal cursor-row, last-line @@ -1463,17 +1463,17 @@ if ('onhashchange' in window) { <span id="L1401" class="LineNr">1401 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> c:char <span class="Special"><-</span> get *next, <span class="Constant">value:offset</span> <span id="L1402" class="LineNr">1402 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> at-newline?:bool <span class="Special"><-</span> equal c, <span class="Constant">10/newline</span> <span id="L1403" class="LineNr">1403 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> at-newline? -<span id="L1404" class="LineNr">1404 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L1404" class="LineNr">1404 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L1405" class="LineNr">1405 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L1406" class="LineNr">1406 </span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> <span id="L1407" class="LineNr">1407 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> <a href='../065duplex_list.mu.html#L25'>next</a> <span id="L1408" class="LineNr">1408 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> <span id="L1409" class="LineNr">1409 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> at-bottom-of-screen? -<span id="L1410" class="LineNr">1410 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">0/don't-render</span> +<span id="L1410" class="LineNr">1410 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">0/don't-render</span> <span id="L1411" class="LineNr">1411 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L1412" class="LineNr">1412 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> <span id="L1413" class="LineNr">1413 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> at-bottom-of-screen? -<span id="L1414" class="LineNr">1414 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">jump</span> <span class="Constant">+try-to-scroll</span> +<span id="L1414" class="LineNr">1414 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> jump</span> <span class="Constant">+try-to-scroll</span> <span id="L1415" class="LineNr">1415 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L1416" class="LineNr">1416 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L1417" class="LineNr">1417 </span> <span class="Conceal">¦</span> cursor-row <span class="Special"><-</span> add cursor-row,<span class="Constant"> 1</span> @@ -1488,12 +1488,12 @@ if ('onhashchange' in window) { <span id="L1426" class="LineNr">1426 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> done? <span id="L1427" class="LineNr">1427 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> cursor-column <span class="Special"><-</span> add cursor-column,<span class="Constant"> 1</span> <span id="L1428" class="LineNr">1428 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> before-cursor <span class="Special"><-</span> copy <a href='../065duplex_list.mu.html#L25'>next</a> -<span id="L1429" class="LineNr">1429 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L1429" class="LineNr">1429 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L1430" class="LineNr">1430 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L1431" class="LineNr">1431 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">before-cursor:offset</span>, before-cursor <span id="L1432" class="LineNr">1432 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-column:offset</span>, cursor-column <span id="L1433" class="LineNr">1433 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-row:offset</span>, cursor-row -<span id="L1434" class="LineNr">1434 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">0/don't-render</span> +<span id="L1434" class="LineNr">1434 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">0/don't-render</span> <span id="L1435" class="LineNr">1435 </span> <span class="Delimiter">}</span> <span id="L1436" class="LineNr">1436 </span><span class="Constant"> +try-to-scroll</span> <span id="L1437" class="LineNr">1437 </span><span class="Constant"> <scroll-down></span> @@ -1606,7 +1606,7 @@ if ('onhashchange' in window) { <span id="L1544" class="LineNr">1544 </span> <span class="Conceal">¦</span> <a href='003-shortcuts.mu.html#L1565'>move-to-start-of-screen-line</a> editor <span id="L1545" class="LineNr">1545 </span> <span class="Conceal">¦</span> undo-coalesce-tag:num <span class="Special"><-</span> copy <span class="Constant">0/never</span> <span id="L1546" class="LineNr">1546 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> -<span id="L1547" class="LineNr">1547 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">0/don't-render</span> +<span id="L1547" class="LineNr">1547 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">0/don't-render</span> <span id="L1548" class="LineNr">1548 </span> <span class="Delimiter">}</span> <span id="L1549" class="LineNr">1549 </span>] <span id="L1550" class="LineNr">1550 </span> @@ -1618,7 +1618,7 @@ if ('onhashchange' in window) { <span id="L1556" class="LineNr">1556 </span> <span class="Conceal">¦</span> <a href='003-shortcuts.mu.html#L1565'>move-to-start-of-screen-line</a> editor <span id="L1557" class="LineNr">1557 </span> <span class="Conceal">¦</span> undo-coalesce-tag:num <span class="Special"><-</span> copy <span class="Constant">0/never</span> <span id="L1558" class="LineNr">1558 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> -<span id="L1559" class="LineNr">1559 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">0/don't-render</span> +<span id="L1559" class="LineNr">1559 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">0/don't-render</span> <span id="L1560" class="LineNr">1560 </span> <span class="Delimiter">}</span> <span id="L1561" class="LineNr">1561 </span>] <span id="L1562" class="LineNr">1562 </span> @@ -1639,7 +1639,7 @@ if ('onhashchange' in window) { <span id="L1577" class="LineNr">1577 </span> <span class="Conceal">¦</span> assert curr, <span class="Constant">[move-to-start-of-line tried to move before start of text]</span> <span id="L1578" class="LineNr">1578 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L32'>prev</a> curr <span id="L1579" class="LineNr">1579 </span> <span class="Conceal">¦</span> col <span class="Special"><-</span> subtract col,<span class="Constant"> 1</span> -<span id="L1580" class="LineNr">1580 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L1580" class="LineNr">1580 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L1581" class="LineNr">1581 </span> <span class="Delimiter">}</span> <span id="L1582" class="LineNr">1582 </span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-column:offset</span>, col <span id="L1583" class="LineNr">1583 </span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">before-cursor:offset</span>, curr @@ -1831,7 +1831,7 @@ if ('onhashchange' in window) { <span id="L1769" class="LineNr">1769 </span> <span class="Conceal">¦</span> <a href='003-shortcuts.mu.html#L1788'>move-to-end-of-line</a> editor <span id="L1770" class="LineNr">1770 </span> <span class="Conceal">¦</span> undo-coalesce-tag:num <span class="Special"><-</span> copy <span class="Constant">0/never</span> <span id="L1771" class="LineNr">1771 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> -<span id="L1772" class="LineNr">1772 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">0/don't-render</span> +<span id="L1772" class="LineNr">1772 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">0/don't-render</span> <span id="L1773" class="LineNr">1773 </span> <span class="Delimiter">}</span> <span id="L1774" class="LineNr">1774 </span>] <span id="L1775" class="LineNr">1775 </span> @@ -1843,7 +1843,7 @@ if ('onhashchange' in window) { <span id="L1781" class="LineNr">1781 </span> <span class="Conceal">¦</span> <a href='003-shortcuts.mu.html#L1788'>move-to-end-of-line</a> editor <span id="L1782" class="LineNr">1782 </span> <span class="Conceal">¦</span> undo-coalesce-tag:num <span class="Special"><-</span> copy <span class="Constant">0/never</span> <span id="L1783" class="LineNr">1783 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> -<span id="L1784" class="LineNr">1784 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">0/don't-render</span> +<span id="L1784" class="LineNr">1784 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">0/don't-render</span> <span id="L1785" class="LineNr">1785 </span> <span class="Delimiter">}</span> <span id="L1786" class="LineNr">1786 </span>] <span id="L1787" class="LineNr">1787 </span> @@ -1866,7 +1866,7 @@ if ('onhashchange' in window) { <span id="L1804" class="LineNr">1804 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-column:offset</span>, cursor-column <span id="L1805" class="LineNr">1805 </span> <span class="Conceal">¦</span> before-cursor <span class="Special"><-</span> copy <a href='../065duplex_list.mu.html#L25'>next</a> <span id="L1806" class="LineNr">1806 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">before-cursor:offset</span>, before-cursor -<span id="L1807" class="LineNr">1807 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L1807" class="LineNr">1807 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L1808" class="LineNr">1808 </span> <span class="Delimiter">}</span> <span id="L1809" class="LineNr">1809 </span>] <span id="L1810" class="LineNr">1810 </span> @@ -2026,7 +2026,7 @@ if ('onhashchange' in window) { <span id="L1964" class="LineNr">1964 </span> <span class="Conceal">¦</span> deleted-cells:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special"><-</span> <a href='003-shortcuts.mu.html#L2006'>delete-to-start-of-line</a> editor <span id="L1965" class="LineNr">1965 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <a href='003-shortcuts.mu.html#L1965'><end-delete-to-start-of-line></a></span> <span id="L1966" class="LineNr">1966 </span> <span class="Conceal">¦</span> go-render?:bool <span class="Special"><-</span> <a href='003-shortcuts.mu.html#L1971'>minimal-render-for-ctrl-u</a> <a href='../081print.mu.html#L16'>screen</a>, editor, deleted-cells -<span id="L1967" class="LineNr">1967 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L1967" class="LineNr">1967 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L1968" class="LineNr">1968 </span> <span class="Delimiter">}</span> <span id="L1969" class="LineNr">1969 </span>] <span id="L1970" class="LineNr">1970 </span> @@ -2050,7 +2050,7 @@ if ('onhashchange' in window) { <span id="L1988" class="LineNr">1988 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> b <span id="L1989" class="LineNr">1989 </span> <span class="Conceal">¦</span> buf <span class="Special"><-</span> append buf, c <span id="L1990" class="LineNr">1990 </span> <span class="Conceal">¦</span> i <span class="Special"><-</span> add i,<span class="Constant"> 1</span> -<span id="L1991" class="LineNr">1991 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L1991" class="LineNr">1991 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L1992" class="LineNr">1992 </span> <span class="Delimiter">}</span> <span id="L1993" class="LineNr">1993 </span> <span class="Comment"># if the line used to be wrapped, give up and render the whole screen</span> <span id="L1994" class="LineNr">1994 </span> num-deleted-cells:num <span class="Special"><-</span> length deleted-cells @@ -2062,7 +2062,7 @@ if ('onhashchange' in window) { <span id="L2000" class="LineNr">2000 </span> curr-line:text <span class="Special"><-</span> <a href='../061text.mu.html#L338'>buffer-to-array</a> buf <span id="L2001" class="LineNr">2001 </span> curr-row:num <span class="Special"><-</span> get *editor, <span class="Constant">cursor-row:offset</span> <span id="L2002" class="LineNr">2002 </span> <a href='003-shortcuts.mu.html#L2062'>render-code</a> <a href='../081print.mu.html#L16'>screen</a>, curr-line, curr-column, right, curr-row -<span id="L2003" class="LineNr">2003 </span> <span class="muControl">return</span> <span class="Constant">0/dont-render</span> +<span id="L2003" class="LineNr">2003 </span> <span class="muControl"> return</span> <span class="Constant">0/dont-render</span> <span id="L2004" class="LineNr">2004 </span>] <span id="L2005" class="LineNr">2005 </span> <span id="L2006" class="LineNr">2006 </span><span class="muRecipe">def</span> <a href='003-shortcuts.mu.html#L2006'>delete-to-start-of-line</a> editor:&:editor<span class="muRecipe"> -> </span>result:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char, editor:&:editor [ @@ -2086,7 +2086,7 @@ if ('onhashchange' in window) { <span id="L2024" class="LineNr">2024 </span> <span class="Conceal">¦</span> update-top-of-screen?:bool <span class="Special"><-</span> or update-top-of-screen?, at-top-of-screen? <span id="L2025" class="LineNr">2025 </span> <span class="Conceal">¦</span> start <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L32'>prev</a> start <span id="L2026" class="LineNr">2026 </span> <span class="Conceal">¦</span> assert start, <span class="Constant">[delete-to-start-of-line tried to move before start of text]</span> -<span id="L2027" class="LineNr">2027 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L2027" class="LineNr">2027 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L2028" class="LineNr">2028 </span> <span class="Delimiter">}</span> <span id="L2029" class="LineNr">2029 </span> <span class="Comment"># snip it out</span> <span id="L2030" class="LineNr">2030 </span> result:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> start @@ -2150,13 +2150,13 @@ if ('onhashchange' in window) { <span id="L2088" class="LineNr">2088 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> space:char <span class="Special"><-</span> copy <span class="Constant">32/space</span> <span id="L2089" class="LineNr">2089 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, space <span id="L2090" class="LineNr">2090 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> column <span class="Special"><-</span> add column,<span class="Constant"> 1</span> -<span id="L2091" class="LineNr">2091 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L2091" class="LineNr">2091 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L2092" class="LineNr">2092 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L2093" class="LineNr">2093 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> <span id="L2094" class="LineNr">2094 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> column <span class="Special"><-</span> copy left <span id="L2095" class="LineNr">2095 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, row, column <span id="L2096" class="LineNr">2096 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> i <span class="Special"><-</span> add i,<span class="Constant"> 1</span> -<span id="L2097" class="LineNr">2097 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-character</span> +<span id="L2097" class="LineNr">2097 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-character</span> <span id="L2098" class="LineNr">2098 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L2099" class="LineNr">2099 </span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> <span id="L2100" class="LineNr">2100 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment"># at right? wrap.</span> @@ -2169,12 +2169,12 @@ if ('onhashchange' in window) { <span id="L2107" class="LineNr">2107 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> <span id="L2108" class="LineNr">2108 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, row, column <span id="L2109" class="LineNr">2109 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment"># don't increment i</span> -<span id="L2110" class="LineNr">2110 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-character</span> +<span id="L2110" class="LineNr">2110 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-character</span> <span id="L2111" class="LineNr">2111 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L2112" class="LineNr">2112 </span> <span class="Conceal">¦</span> i <span class="Special"><-</span> add i,<span class="Constant"> 1</span> <span id="L2113" class="LineNr">2113 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, c, color <span id="L2114" class="LineNr">2114 </span> <span class="Conceal">¦</span> column <span class="Special"><-</span> add column,<span class="Constant"> 1</span> -<span id="L2115" class="LineNr">2115 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L2115" class="LineNr">2115 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L2116" class="LineNr">2116 </span> <span class="Delimiter">}</span> <span id="L2117" class="LineNr">2117 </span> was-at-left?:bool <span class="Special"><-</span> equal column, left <span id="L2118" class="LineNr">2118 </span> <a href='../081print.mu.html#L553'>clear-line-until</a> <a href='../081print.mu.html#L16'>screen</a>, right @@ -2604,7 +2604,7 @@ if ('onhashchange' in window) { <span id="L2542" class="LineNr">2542 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <a href='003-shortcuts.mu.html#L2542'><end-delete-to-end-of-line></a></span> <span id="L2543" class="LineNr">2543 </span> <span class="Conceal">¦</span> <span class="Comment"># checks if we can do a minimal render and if we can it will do a minimal render</span> <span id="L2544" class="LineNr">2544 </span> <span class="Conceal">¦</span> go-render?:bool <span class="Special"><-</span> <a href='003-shortcuts.mu.html#L2549'>minimal-render-for-ctrl-k</a> <a href='../081print.mu.html#L16'>screen</a>, editor, deleted-cells -<span id="L2545" class="LineNr">2545 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L2545" class="LineNr">2545 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L2546" class="LineNr">2546 </span> <span class="Delimiter">}</span> <span id="L2547" class="LineNr">2547 </span>] <span id="L2548" class="LineNr">2548 </span> @@ -2623,7 +2623,7 @@ if ('onhashchange' in window) { <span id="L2561" class="LineNr">2561 </span> wrap?:bool <span class="Special"><-</span> greater-or-equal old-row-len, end <span id="L2562" class="LineNr">2562 </span> <span class="muControl">return-if</span> wrap?, <span class="Constant">1/go-render</span> <span id="L2563" class="LineNr">2563 </span> <a href='../081print.mu.html#L553'>clear-line-until</a> <a href='../081print.mu.html#L16'>screen</a>, right -<span id="L2564" class="LineNr">2564 </span> <span class="muControl">return</span> <span class="Constant">0/dont-render</span> +<span id="L2564" class="LineNr">2564 </span> <span class="muControl"> return</span> <span class="Constant">0/dont-render</span> <span id="L2565" class="LineNr">2565 </span>] <span id="L2566" class="LineNr">2566 </span> <span id="L2567" class="LineNr">2567 </span><span class="muRecipe">def</span> <a href='003-shortcuts.mu.html#L2567'>delete-to-end-of-line</a> editor:&:editor<span class="muRecipe"> -> </span>result:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char, editor:&:editor [ @@ -2639,7 +2639,7 @@ if ('onhashchange' in window) { <span id="L2577" class="LineNr">2577 </span> <span class="Conceal">¦</span> at-end-of-line?:bool <span class="Special"><-</span> equal curr, <span class="Constant">10/newline</span> <span id="L2578" class="LineNr">2578 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> at-end-of-line? <span id="L2579" class="LineNr">2579 </span> <span class="Conceal">¦</span> end <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> end -<span id="L2580" class="LineNr">2580 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L2580" class="LineNr">2580 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L2581" class="LineNr">2581 </span> <span class="Delimiter">}</span> <span id="L2582" class="LineNr">2582 </span> <span class="Comment"># snip it out</span> <span id="L2583" class="LineNr">2583 </span> result <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> start @@ -2885,10 +2885,10 @@ if ('onhashchange' in window) { <span id="L2823" class="LineNr">2823 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> at-newline? <span id="L2824" class="LineNr">2824 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr <span id="L2825" class="LineNr">2825 </span> <span class="Conceal">¦</span> count <span class="Special"><-</span> add count,<span class="Constant"> 1</span> -<span id="L2826" class="LineNr">2826 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L2826" class="LineNr">2826 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L2827" class="LineNr">2827 </span> <span class="Delimiter">}</span> <span id="L2828" class="LineNr">2828 </span> <span class="muControl">return-unless</span> curr, original -<span id="L2829" class="LineNr">2829 </span> <span class="muControl">return</span> curr +<span id="L2829" class="LineNr">2829 </span> <span class="muControl"> return</span> curr <span id="L2830" class="LineNr">2830 </span>] <span id="L2831" class="LineNr">2831 </span> <span id="L2832" class="LineNr">2832 </span><span class="muScenario">scenario</span> editor-scrolls-down-past-wrapped-line-using-arrow-keys [ @@ -3252,7 +3252,7 @@ if ('onhashchange' in window) { <span id="L3190" class="LineNr">3190 </span> <span class="Conceal">¦</span> <span class="Comment"># empty line; just skip this newline</span> <span id="L3191" class="LineNr">3191 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L32'>prev</a>:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L32'>prev</a> curr <span id="L3192" class="LineNr">3192 </span> <span class="Conceal">¦</span> <span class="muControl">return-unless</span> <a href='../065duplex_list.mu.html#L32'>prev</a>, curr -<span id="L3193" class="LineNr">3193 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <a href='../065duplex_list.mu.html#L32'>prev</a> +<span id="L3193" class="LineNr">3193 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <a href='../065duplex_list.mu.html#L32'>prev</a> <span id="L3194" class="LineNr">3194 </span> <span class="Delimiter">}</span> <span id="L3195" class="LineNr">3195 </span> _, max:num <span class="Special"><-</span> divide-with-remainder len, max-line-length <span id="L3196" class="LineNr">3196 </span> <span class="Comment"># remainder 0 => scan one width-worth</span> @@ -3270,9 +3270,9 @@ if ('onhashchange' in window) { <span id="L3208" class="LineNr">3208 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> <a href='../065duplex_list.mu.html#L32'>prev</a> <span id="L3209" class="LineNr">3209 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> copy <a href='../065duplex_list.mu.html#L32'>prev</a> <span id="L3210" class="LineNr">3210 </span> <span class="Conceal">¦</span> count <span class="Special"><-</span> add count,<span class="Constant"> 1</span> -<span id="L3211" class="LineNr">3211 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L3211" class="LineNr">3211 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L3212" class="LineNr">3212 </span> <span class="Delimiter">}</span> -<span id="L3213" class="LineNr">3213 </span> <span class="muControl">return</span> curr +<span id="L3213" class="LineNr">3213 </span> <span class="muControl"> return</span> curr <span id="L3214" class="LineNr">3214 </span>] <span id="L3215" class="LineNr">3215 </span> <span id="L3216" class="LineNr">3216 </span><span class="muScenario">scenario</span> editor-scrolls-up-past-wrapped-line-using-arrow-keys [ @@ -3635,7 +3635,7 @@ if ('onhashchange' in window) { <span id="L3573" class="LineNr">3573 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> <span id="L3574" class="LineNr">3574 </span> <span class="Conceal">¦</span> top-of-screen:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special"><-</span> get *editor, <span class="Constant">top-of-screen:offset</span> <span id="L3575" class="LineNr">3575 </span> <span class="Conceal">¦</span> movement?:bool <span class="Special"><-</span> not-equal top-of-screen, old-top -<span id="L3576" class="LineNr">3576 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> movement?/go-render +<span id="L3576" class="LineNr">3576 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> movement?/go-render <span id="L3577" class="LineNr">3577 </span> <span class="Delimiter">}</span> <span id="L3578" class="LineNr">3578 </span>] <span id="L3579" class="LineNr">3579 </span> @@ -3650,7 +3650,7 @@ if ('onhashchange' in window) { <span id="L3588" class="LineNr">3588 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> <span id="L3589" class="LineNr">3589 </span> <span class="Conceal">¦</span> top-of-screen:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special"><-</span> get *editor, <span class="Constant">top-of-screen:offset</span> <span id="L3590" class="LineNr">3590 </span> <span class="Conceal">¦</span> movement?:bool <span class="Special"><-</span> not-equal top-of-screen, old-top -<span id="L3591" class="LineNr">3591 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> movement?/go-render +<span id="L3591" class="LineNr">3591 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> movement?/go-render <span id="L3592" class="LineNr">3592 </span> <span class="Delimiter">}</span> <span id="L3593" class="LineNr">3593 </span>] <span id="L3594" class="LineNr">3594 </span> @@ -3701,7 +3701,7 @@ if ('onhashchange' in window) { <span id="L3639" class="LineNr">3639 </span> <span class="Conceal">¦</span> before-cursor <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L32'>prev</a> before-cursor <span id="L3640" class="LineNr">3640 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">before-cursor:offset</span>, before-cursor <span id="L3641" class="LineNr">3641 </span> <span class="Conceal">¦</span> assert before-cursor, <span class="Constant">[move-to-start-of-line tried to move before start of text]</span> -<span id="L3642" class="LineNr">3642 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L3642" class="LineNr">3642 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L3643" class="LineNr">3643 </span> <span class="Delimiter">}</span> <span id="L3644" class="LineNr">3644 </span>] <span id="L3645" class="LineNr">3645 </span> @@ -3859,7 +3859,7 @@ if ('onhashchange' in window) { <span id="L3797" class="LineNr">3797 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> <span id="L3798" class="LineNr">3798 </span> <span class="Conceal">¦</span> top-of-screen:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special"><-</span> get *editor, <span class="Constant">top-of-screen:offset</span> <span id="L3799" class="LineNr">3799 </span> <span class="Conceal">¦</span> movement?:bool <span class="Special"><-</span> not-equal top-of-screen, old-top -<span id="L3800" class="LineNr">3800 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> movement?/go-render +<span id="L3800" class="LineNr">3800 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> movement?/go-render <span id="L3801" class="LineNr">3801 </span> <span class="Delimiter">}</span> <span id="L3802" class="LineNr">3802 </span>] <span id="L3803" class="LineNr">3803 </span> @@ -3875,7 +3875,7 @@ if ('onhashchange' in window) { <span id="L3813" class="LineNr">3813 </span> <span class="Conceal">¦</span> top-of-screen:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special"><-</span> get *editor, <span class="Constant">top-of-screen:offset</span> <span id="L3814" class="LineNr">3814 </span> <span class="Conceal">¦</span> movement?:bool <span class="Special"><-</span> not-equal top-of-screen, old-top <span id="L3815" class="LineNr">3815 </span> <span class="Conceal">¦</span> <span class="Comment"># don't bother re-rendering if nothing changed. todo: test this</span> -<span id="L3816" class="LineNr">3816 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> movement?/go-render +<span id="L3816" class="LineNr">3816 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> movement?/go-render <span id="L3817" class="LineNr">3817 </span> <span class="Delimiter">}</span> <span id="L3818" class="LineNr">3818 </span>] <span id="L3819" class="LineNr">3819 </span> @@ -3893,7 +3893,7 @@ if ('onhashchange' in window) { <span id="L3831" class="LineNr">3831 </span> <span class="Conceal">¦</span> top-of-screen <span class="Special"><-</span> copy <a href='../065duplex_list.mu.html#L32'>prev</a> <span id="L3832" class="LineNr">3832 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">top-of-screen:offset</span>, top-of-screen <span id="L3833" class="LineNr">3833 </span> <span class="Conceal">¦</span> count <span class="Special"><-</span> add count,<span class="Constant"> 1</span> -<span id="L3834" class="LineNr">3834 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L3834" class="LineNr">3834 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L3835" class="LineNr">3835 </span> <span class="Delimiter">}</span> <span id="L3836" class="LineNr">3836 </span>] <span id="L3837" class="LineNr">3837 </span> @@ -4204,7 +4204,7 @@ if ('onhashchange' in window) { <span id="L4142" class="LineNr">4142 </span> <span class="Conceal">¦</span> go-render?:bool, editor <span class="Special"><-</span> <a href='003-shortcuts.mu.html#L4149'>line-up</a> editor, <a href='../081print.mu.html#L782'>screen-height</a> <span id="L4143" class="LineNr">4143 </span> <span class="Conceal">¦</span> undo-coalesce-tag:num <span class="Special"><-</span> copy <span class="Constant">5/line-up</span> <span id="L4144" class="LineNr">4144 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> -<span id="L4145" class="LineNr">4145 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> go-render? +<span id="L4145" class="LineNr">4145 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> go-render? <span id="L4146" class="LineNr">4146 </span> <span class="Delimiter">}</span> <span id="L4147" class="LineNr">4147 </span>] <span id="L4148" class="LineNr">4148 </span> @@ -4221,7 +4221,7 @@ if ('onhashchange' in window) { <span id="L4159" class="LineNr">4159 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> movement? <span id="L4160" class="LineNr">4160 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">top-of-screen:offset</span>, new-top <span id="L4161" class="LineNr">4161 </span> <span class="Delimiter">}</span> -<span id="L4162" class="LineNr">4162 </span> <span class="muControl">return</span> movement? +<span id="L4162" class="LineNr">4162 </span> <span class="muControl"> return</span> movement? <span id="L4163" class="LineNr">4163 </span>] <span id="L4164" class="LineNr">4164 </span> <span id="L4165" class="LineNr">4165 </span><span class="Comment"># ctrl-x - scroll down by one line</span> @@ -4235,7 +4235,7 @@ if ('onhashchange' in window) { <span id="L4173" class="LineNr">4173 </span> <span class="Conceal">¦</span> go-render?:bool, editor <span class="Special"><-</span> <a href='003-shortcuts.mu.html#L4180'>line-down</a> editor, <a href='../081print.mu.html#L782'>screen-height</a> <span id="L4174" class="LineNr">4174 </span> <span class="Conceal">¦</span> undo-coalesce-tag:num <span class="Special"><-</span> copy <span class="Constant">6/line-down</span> <span id="L4175" class="LineNr">4175 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> -<span id="L4176" class="LineNr">4176 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> go-render? +<span id="L4176" class="LineNr">4176 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> go-render? <span id="L4177" class="LineNr">4177 </span> <span class="Delimiter">}</span> <span id="L4178" class="LineNr">4178 </span>] <span id="L4179" class="LineNr">4179 </span> @@ -4249,7 +4249,7 @@ if ('onhashchange' in window) { <span id="L4187" class="LineNr">4187 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> movement? <span id="L4188" class="LineNr">4188 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">top-of-screen:offset</span>, new-top <span id="L4189" class="LineNr">4189 </span> <span class="Delimiter">}</span> -<span id="L4190" class="LineNr">4190 </span> <span class="muControl">return</span> movement? +<span id="L4190" class="LineNr">4190 </span> <span class="muControl"> return</span> movement? <span id="L4191" class="LineNr">4191 </span>] <span id="L4192" class="LineNr">4192 </span> <span id="L4193" class="LineNr">4193 </span><span class="Comment"># ctrl-t - move current line to top of screen</span> @@ -4269,7 +4269,7 @@ if ('onhashchange' in window) { <span id="L4207" class="LineNr">4207 </span> <span class="Conceal">¦</span> go-render?:bool <span class="Special"><-</span> not-equal new-top, old-top <span id="L4208" class="LineNr">4208 </span> <span class="Conceal">¦</span> undo-coalesce-tag:num <span class="Special"><-</span> copy <span class="Constant">0/never</span> <span id="L4209" class="LineNr">4209 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-move-cursor></span> -<span id="L4210" class="LineNr">4210 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> go-render? +<span id="L4210" class="LineNr">4210 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> go-render? <span id="L4211" class="LineNr">4211 </span> <span class="Delimiter">}</span> <span id="L4212" class="LineNr">4212 </span>] <span id="L4213" class="LineNr">4213 </span> @@ -4302,7 +4302,7 @@ if ('onhashchange' in window) { <span id="L4240" class="LineNr">4240 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> go-render? <span class="Special"><-</span> <a href='003-shortcuts.mu.html#L4250'>render-line-from-start</a> <a href='../081print.mu.html#L16'>screen</a>, editor,<span class="Constant"> 0</span> <span id="L4241" class="LineNr">4241 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L4242" class="LineNr">4242 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <end-insert-character></span> -<span id="L4243" class="LineNr">4243 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L4243" class="LineNr">4243 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L4244" class="LineNr">4244 </span> <span class="Delimiter">}</span> <span id="L4245" class="LineNr">4245 </span>] <span id="L4246" class="LineNr">4246 </span> @@ -4333,10 +4333,10 @@ if ('onhashchange' in window) { <span id="L4271" class="LineNr">4271 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, c, color <span id="L4272" class="LineNr">4272 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr <span id="L4273" class="LineNr">4273 </span> <span class="Conceal">¦</span> i <span class="Special"><-</span> add i,<span class="Constant"> 1</span> -<span id="L4274" class="LineNr">4274 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L4274" class="LineNr">4274 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L4275" class="LineNr">4275 </span> <span class="Delimiter">}</span> <span id="L4276" class="LineNr">4276 </span> <a href='../081print.mu.html#L553'>clear-line-until</a> <a href='../081print.mu.html#L16'>screen</a>, right -<span id="L4277" class="LineNr">4277 </span> <span class="muControl">return</span> <span class="Constant">0/dont-render</span> +<span id="L4277" class="LineNr">4277 </span> <span class="muControl"> return</span> <span class="Constant">0/dont-render</span> <span id="L4278" class="LineNr">4278 </span>] <span id="L4279" class="LineNr">4279 </span> <span id="L4280" class="LineNr">4280 </span><span class="muRecipe">def</span> <a href='003-shortcuts.mu.html#L4280'>before-start-of-screen-line</a> editor:&:editor<span class="muRecipe"> -> </span>result:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char [ diff --git a/html/edit/004-programming-environment.mu.html b/html/edit/004-programming-environment.mu.html index 04eb525e..2a1dd7f6 100644 --- a/html/edit/004-programming-environment.mu.html +++ b/html/edit/004-programming-environment.mu.html @@ -147,7 +147,7 @@ if ('onhashchange' in window) { <span id="L84" class="LineNr"> 84 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> sandbox-in-focus?:bool <span class="Special"><-</span> move-cursor current-sandbox, <a href='../081print.mu.html#L16'>screen</a>, t <span id="L85" class="LineNr"> 85 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> *env <span class="Special"><-</span> put *env, <span class="Constant">sandbox-in-focus?:offset</span>, sandbox-in-focus? <span id="L86" class="LineNr"> 86 </span> <span class="Conceal">¦</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="L87" class="LineNr"> 87 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> +<span id="L87" class="LineNr"> 87 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-event</span> <span id="L88" class="LineNr"> 88 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L89" class="LineNr"> 89 </span> <span class="Conceal">¦</span> <span class="Comment"># 'resize' event - redraw editor</span> <span id="L90" class="LineNr"> 90 </span> <span class="Conceal">¦</span> <span class="Comment"># todo: test this after supporting resize in assume-console</span> @@ -156,7 +156,7 @@ if ('onhashchange' in window) { <span id="L93" class="LineNr"> 93 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> is-resize? <span id="L94" class="LineNr"> 94 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> env, <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L131'>resize</a> <a href='../081print.mu.html#L16'>screen</a>, env <span id="L95" class="LineNr"> 95 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='004-programming-environment.mu.html#L158'>render-without-moving-cursor</a> -<span id="L96" class="LineNr"> 96 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> +<span id="L96" class="LineNr"> 96 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-event</span> <span id="L97" class="LineNr"> 97 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L98" class="LineNr"> 98 </span> <span class="Conceal">¦</span> <span class="Comment"># if it's not global and not a touch event, send to appropriate editor</span> <span id="L99" class="LineNr"> 99 </span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> @@ -187,7 +187,7 @@ if ('onhashchange' in window) { <span id="L124" class="LineNr">124 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L125" class="LineNr">125 </span> <span class="Conceal">¦</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="L126" class="LineNr">126 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> -<span id="L127" class="LineNr">127 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L127" class="LineNr">127 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L128" class="LineNr">128 </span> <span class="Delimiter">}</span> <span id="L129" class="LineNr">129 </span>] <span id="L130" class="LineNr">130 </span> @@ -269,7 +269,7 @@ if ('onhashchange' in window) { <span id="L206" class="LineNr">206 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, row, column <span id="L207" class="LineNr">207 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr <span id="L208" class="LineNr">208 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L32'>prev</a> <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> <a href='../065duplex_list.mu.html#L32'>prev</a> -<span id="L209" class="LineNr">209 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-character</span> +<span id="L209" class="LineNr">209 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-character</span> <span id="L210" class="LineNr">210 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L211" class="LineNr">211 </span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> <span id="L212" class="LineNr">212 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment"># at right? wrap. even if there's only one more letter left; we need</span> @@ -283,18 +283,18 @@ if ('onhashchange' in window) { <span id="L220" class="LineNr">220 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> <span id="L221" class="LineNr">221 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, row, column <span id="L222" class="LineNr">222 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment"># don't increment curr</span> -<span id="L223" class="LineNr">223 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-character</span> +<span id="L223" class="LineNr">223 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-character</span> <span id="L224" class="LineNr">224 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L225" class="LineNr">225 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, c, color <span id="L226" class="LineNr">226 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr <span id="L227" class="LineNr">227 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L32'>prev</a> <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> <a href='../065duplex_list.mu.html#L32'>prev</a> <span id="L228" class="LineNr">228 </span> <span class="Conceal">¦</span> column <span class="Special"><-</span> add column,<span class="Constant"> 1</span> -<span id="L229" class="LineNr">229 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L229" class="LineNr">229 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L230" class="LineNr">230 </span> <span class="Delimiter">}</span> <span id="L231" class="LineNr">231 </span> <span class="Comment"># save first character off-screen</span> <span id="L232" class="LineNr">232 </span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">bottom-of-screen:offset</span>, curr <span id="L233" class="LineNr">233 </span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">bottom:offset</span>, row -<span id="L234" class="LineNr">234 </span> <span class="muControl">return</span> row, column +<span id="L234" class="LineNr">234 </span> <span class="muControl"> return</span> row, column <span id="L235" class="LineNr">235 </span>] <span id="L236" class="LineNr">236 </span> <span id="L237" class="LineNr">237 </span><span class="muScenario">scenario</span> point-at-multiple-editors [ @@ -560,7 +560,7 @@ if ('onhashchange' in window) { <span id="L497" class="LineNr">497 </span> <span class="Conceal">¦</span> sandbox-in-focus? <span class="Special"><-</span> not sandbox-in-focus? <span id="L498" class="LineNr">498 </span> <span class="Conceal">¦</span> *env <span class="Special"><-</span> put *env, <span class="Constant">sandbox-in-focus?:offset</span>, sandbox-in-focus? <span id="L499" class="LineNr">499 </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="L500" class="LineNr">500 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> +<span id="L500" class="LineNr">500 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-event</span> <span id="L501" class="LineNr">501 </span> <span class="Delimiter">}</span> <span id="L502" class="LineNr">502 </span>] <span id="L503" class="LineNr">503 </span> @@ -586,7 +586,7 @@ if ('onhashchange' in window) { <span id="L523" class="LineNr">523 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, y, col <span id="L524" class="LineNr">524 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, style, color <span id="L525" class="LineNr">525 </span> <span class="Conceal">¦</span> y <span class="Special"><-</span> add y,<span class="Constant"> 1</span> -<span id="L526" class="LineNr">526 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L526" class="LineNr">526 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L527" class="LineNr">527 </span> <span class="Delimiter">}</span> <span id="L528" class="LineNr">528 </span>] <span id="L529" class="LineNr">529 </span> diff --git a/html/edit/005-sandbox.mu.html b/html/edit/005-sandbox.mu.html index f91232db..d46cf41e 100644 --- a/html/edit/005-sandbox.mu.html +++ b/html/edit/005-sandbox.mu.html @@ -202,7 +202,7 @@ if ('onhashchange' in window) { <span id="L139" class="LineNr"> 139 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L217'>update-status</a> <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[ ]</span>, <span class="Constant">245/grey</span> <span id="L140" class="LineNr"> 140 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L141" class="LineNr"> 141 </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="L142" class="LineNr"> 142 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> +<span id="L142" class="LineNr"> 142 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-event</span> <span id="L143" class="LineNr"> 143 </span> <span class="Delimiter">}</span> <span id="L144" class="LineNr"> 144 </span>] <span id="L145" class="LineNr"> 145 </span> @@ -245,7 +245,7 @@ if ('onhashchange' in window) { <span id="L182" class="LineNr"> 182 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> update-sandbox curr, env, idx <span id="L183" class="LineNr"> 183 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> get *curr, <span class="Constant">next-sandbox:offset</span> <span id="L184" class="LineNr"> 184 </span> <span class="Conceal">¦</span> idx <span class="Special"><-</span> add idx,<span class="Constant"> 1</span> -<span id="L185" class="LineNr"> 185 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L185" class="LineNr"> 185 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L186" class="LineNr"> 186 </span> <span class="Delimiter">}</span> <span id="L187" class="LineNr"> 187 </span><span class="Constant"> <a href='005-sandbox.mu.html#L187'><end-run-sandboxes></a></span> <span id="L188" class="LineNr"> 188 </span><span class="Constant"> +return</span> @@ -298,7 +298,7 @@ if ('onhashchange' in window) { <span id="L235" class="LineNr"> 235 </span> <span class="Conceal">¦</span> <a href='../088file.mu.html#L11'>resources</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L242'>save-sandbox</a> <a href='../088file.mu.html#L11'>resources</a>, curr, idx <span id="L236" class="LineNr"> 236 </span> <span class="Conceal">¦</span> idx <span class="Special"><-</span> add idx,<span class="Constant"> 1</span> <span id="L237" class="LineNr"> 237 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> get *curr, <span class="Constant">next-sandbox:offset</span> -<span id="L238" class="LineNr"> 238 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L238" class="LineNr"> 238 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L239" class="LineNr"> 239 </span> <span class="Delimiter">}</span> <span id="L240" class="LineNr"> 240 </span>] <span id="L241" class="LineNr"> 241 </span> @@ -485,13 +485,13 @@ if ('onhashchange' in window) { <span id="L422" class="LineNr"> 422 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> space:char <span class="Special"><-</span> copy <span class="Constant">32/space</span> <span id="L423" class="LineNr"> 423 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, space <span id="L424" class="LineNr"> 424 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> column <span class="Special"><-</span> add column,<span class="Constant"> 1</span> -<span id="L425" class="LineNr"> 425 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L425" class="LineNr"> 425 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L426" class="LineNr"> 426 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L427" class="LineNr"> 427 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> <span id="L428" class="LineNr"> 428 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> column <span class="Special"><-</span> copy left <span id="L429" class="LineNr"> 429 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, row, column <span id="L430" class="LineNr"> 430 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> i <span class="Special"><-</span> add i,<span class="Constant"> 1</span> -<span id="L431" class="LineNr"> 431 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-character</span> +<span id="L431" class="LineNr"> 431 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-character</span> <span id="L432" class="LineNr"> 432 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L433" class="LineNr"> 433 </span> <span class="Conceal">¦</span> <span class="Delimiter">{</span> <span id="L434" class="LineNr"> 434 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment"># at right? wrap.</span> @@ -504,12 +504,12 @@ if ('onhashchange' in window) { <span id="L441" class="LineNr"> 441 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> <span id="L442" class="LineNr"> 442 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, row, column <span id="L443" class="LineNr"> 443 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment"># don't increment i</span> -<span id="L444" class="LineNr"> 444 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-character</span> +<span id="L444" class="LineNr"> 444 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-character</span> <span id="L445" class="LineNr"> 445 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L446" class="LineNr"> 446 </span> <span class="Conceal">¦</span> i <span class="Special"><-</span> add i,<span class="Constant"> 1</span> <span id="L447" class="LineNr"> 447 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, c, color <span id="L448" class="LineNr"> 448 </span> <span class="Conceal">¦</span> column <span class="Special"><-</span> add column,<span class="Constant"> 1</span> -<span id="L449" class="LineNr"> 449 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L449" class="LineNr"> 449 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L450" class="LineNr"> 450 </span> <span class="Delimiter">}</span> <span id="L451" class="LineNr"> 451 </span> was-at-left?:bool <span class="Special"><-</span> equal column, left <span id="L452" class="LineNr"> 452 </span> <a href='../081print.mu.html#L553'>clear-line-until</a> <a href='../081print.mu.html#L16'>screen</a>, right @@ -561,7 +561,7 @@ if ('onhashchange' in window) { <span id="L498" class="LineNr"> 498 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L499" class="LineNr"> 499 </span> <span class="Conceal">¦</span> idx <span class="Special"><-</span> add idx,<span class="Constant"> 1</span> <span id="L500" class="LineNr"> 500 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L32'>prev</a> <span class="Special"><-</span> copy curr -<span id="L501" class="LineNr"> 501 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L501" class="LineNr"> 501 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L502" class="LineNr"> 502 </span> <span class="Delimiter">}</span> <span id="L503" class="LineNr"> 503 </span> <span class="Comment"># update sandbox count</span> <span id="L504" class="LineNr"> 504 </span> *env <span class="Special"><-</span> put *env, <span class="Constant">number-of-sandboxes:offset</span>, idx @@ -616,7 +616,7 @@ if ('onhashchange' in window) { <span id="L553" class="LineNr"> 553 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, c, color <span id="L554" class="LineNr"> 554 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> column <span class="Special"><-</span> add column,<span class="Constant"> 1</span> <span id="L555" class="LineNr"> 555 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> i <span class="Special"><-</span> add i,<span class="Constant"> 1</span> -<span id="L556" class="LineNr"> 556 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L556" class="LineNr"> 556 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L557" class="LineNr"> 557 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L558" class="LineNr"> 558 </span> <span class="Conceal">¦</span> <span class="Comment"># print final '.'</span> <span id="L559" class="LineNr"> 559 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, full-stop, <span class="Constant">245/grey</span> @@ -627,10 +627,10 @@ if ('onhashchange' in window) { <span id="L564" class="LineNr"> 564 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> line-done? <span id="L565" class="LineNr"> 565 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L16'>screen</a>, space <span id="L566" class="LineNr"> 566 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> column <span class="Special"><-</span> add column,<span class="Constant"> 1</span> -<span id="L567" class="LineNr"> 567 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L567" class="LineNr"> 567 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L568" class="LineNr"> 568 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L569" class="LineNr"> 569 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> -<span id="L570" class="LineNr"> 570 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L570" class="LineNr"> 570 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L571" class="LineNr"> 571 </span> <span class="Delimiter">}</span> <span id="L572" class="LineNr"> 572 </span>] <span id="L573" class="LineNr"> 573 </span> @@ -757,7 +757,7 @@ if ('onhashchange' in window) { <span id="L694" class="LineNr"> 694 </span> <span class="Conceal">¦</span> c:char <span class="Special"><-</span> get *curr, <span class="Constant">value:offset</span> <span id="L695" class="LineNr"> 695 </span> <span class="Conceal">¦</span> buf <span class="Special"><-</span> append buf, c <span id="L696" class="LineNr"> 696 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> curr -<span id="L697" class="LineNr"> 697 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L697" class="LineNr"> 697 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L698" class="LineNr"> 698 </span> <span class="Delimiter">}</span> <span id="L699" class="LineNr"> 699 </span> result <span class="Special"><-</span> <a href='../061text.mu.html#L338'>buffer-to-array</a> buf <span id="L700" class="LineNr"> 700 </span>] @@ -969,7 +969,7 @@ if ('onhashchange' in window) { <span id="L906" class="LineNr"> 906 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L907" class="LineNr"> 907 </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="L908" class="LineNr"> 908 </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="L909" class="LineNr"> 909 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> +<span id="L909" class="LineNr"> 909 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-event</span> <span id="L910" class="LineNr"> 910 </span> <span class="Delimiter">}</span> <span id="L911" class="LineNr"> 911 </span>] <span id="L912" class="LineNr"> 912 </span> @@ -982,7 +982,7 @@ if ('onhashchange' in window) { <span id="L919" class="LineNr"> 919 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> scrolling? <span id="L920" class="LineNr"> 920 </span> <span class="Conceal">¦</span> cursor-column:num <span class="Special"><-</span> get *current-sandbox, <span class="Constant">left:offset</span> <span id="L921" class="LineNr"> 921 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">2/row</span>, cursor-column <span class="Comment"># highlighted sandbox will always start at row 2</span> -<span id="L922" class="LineNr"> 922 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L922" class="LineNr"> 922 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L923" class="LineNr"> 923 </span> <span class="Delimiter">}</span> <span id="L924" class="LineNr"> 924 </span>] <span id="L925" class="LineNr"> 925 </span> @@ -999,7 +999,7 @@ if ('onhashchange' in window) { <span id="L936" class="LineNr"> 936 </span> <span class="Conceal">¦</span> *env <span class="Special"><-</span> put *env, <span class="Constant">render-from:offset</span>, render-from <span id="L937" class="LineNr"> 937 </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="L938" class="LineNr"> 938 </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="L939" class="LineNr"> 939 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> +<span id="L939" class="LineNr"> 939 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-event</span> <span id="L940" class="LineNr"> 940 </span> <span class="Delimiter">}</span> <span id="L941" class="LineNr"> 941 </span>] <span id="L942" class="LineNr"> 942 </span> @@ -1017,9 +1017,9 @@ if ('onhashchange' in window) { <span id="L954" class="LineNr"> 954 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> found? <span id="L955" class="LineNr"> 955 </span> <span class="Conceal">¦</span> curr <span class="Special"><-</span> copy <a href='../065duplex_list.mu.html#L25'>next</a> <span id="L956" class="LineNr"> 956 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L25'>next</a> <span class="Special"><-</span> get *curr, <span class="Constant">next-sandbox:offset</span> -<span id="L957" class="LineNr"> 957 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L957" class="LineNr"> 957 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L958" class="LineNr"> 958 </span> <span class="Delimiter">}</span> -<span id="L959" class="LineNr"> 959 </span> <span class="muControl">return</span> curr +<span id="L959" class="LineNr"> 959 </span> <span class="muControl"> return</span> curr <span id="L960" class="LineNr"> 960 </span>] <span id="L961" class="LineNr"> 961 </span> <span id="L962" class="LineNr"> 962 </span><span class="muScenario">scenario</span> scrolling-through-multiple-sandboxes [ diff --git a/html/edit/006-sandbox-copy.mu.html b/html/edit/006-sandbox-copy.mu.html index bcc6e301..782450c4 100644 --- a/html/edit/006-sandbox-copy.mu.html +++ b/html/edit/006-sandbox-copy.mu.html @@ -194,7 +194,7 @@ if ('onhashchange' in window) { <span id="L132" class="LineNr">132 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> copy? <span id="L133" class="LineNr">133 </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="L134" class="LineNr">134 </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="L135" class="LineNr">135 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> +<span id="L135" class="LineNr">135 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-event</span> <span id="L136" class="LineNr">136 </span> <span class="Delimiter">}</span> <span id="L137" class="LineNr">137 </span>] <span id="L138" class="LineNr">138 </span> @@ -244,9 +244,9 @@ if ('onhashchange' in window) { <span id="L182" class="LineNr">182 </span> <span class="Conceal">¦</span> found?:bool <span class="Special"><-</span> equal click-row, start <span id="L183" class="LineNr">183 </span> <span class="Conceal">¦</span> <span class="muControl">return-if</span> found?, curr-sandbox <span id="L184" class="LineNr">184 </span> <span class="Conceal">¦</span> curr-sandbox <span class="Special"><-</span> get *curr-sandbox, <span class="Constant">next-sandbox:offset</span> -<span id="L185" class="LineNr">185 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L185" class="LineNr">185 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L186" class="LineNr">186 </span> <span class="Delimiter">}</span> -<span id="L187" class="LineNr">187 </span> <span class="muControl">return</span> <span class="Constant">0/not-found</span> +<span id="L187" class="LineNr">187 </span> <span class="muControl"> return</span> <span class="Constant">0/not-found</span> <span id="L188" class="LineNr">188 </span>] <span id="L189" class="LineNr">189 </span> <span id="L190" class="LineNr">190 </span><span class="muRecipe">def</span> <a href='006-sandbox-copy.mu.html#L190'>click-on-sandbox-area?</a> click-row:num, click-column:num, env:&:environment<span class="muRecipe"> -> </span>result:bool [ @@ -414,7 +414,7 @@ if ('onhashchange' in window) { <span id="L352" class="LineNr">352 </span> <span class="Conceal">¦</span> *env <span class="Special"><-</span> put *env, <span class="Constant">sandbox-in-focus?:offset</span>, <span class="Constant">0/false</span> <span id="L353" class="LineNr">353 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L431'>render-recipes</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a> <span id="L354" class="LineNr">354 </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="L355" class="LineNr">355 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> +<span id="L355" class="LineNr">355 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-event</span> <span id="L356" class="LineNr">356 </span> <span class="Delimiter">}</span> <span id="L357" class="LineNr">357 </span>] <span id="L358" class="LineNr">358 </span> @@ -453,7 +453,7 @@ if ('onhashchange' in window) { <span id="L391" class="LineNr">391 </span> *recipe-editor <span class="Special"><-</span> put *recipe-editor, <span class="Constant">before-cursor:offset</span>, recipe-data <span id="L392" class="LineNr">392 </span> *recipe-editor <span class="Special"><-</span> put *recipe-editor, <span class="Constant">cursor-row:offset</span>,<span class="Constant"> 1</span> <span id="L393" class="LineNr">393 </span> *recipe-editor <span class="Special"><-</span> put *recipe-editor, <span class="Constant">cursor-column:offset</span>,<span class="Constant"> 0</span> -<span id="L394" class="LineNr">394 </span> <span class="muControl">return</span> <span class="Constant">1/true</span> +<span id="L394" class="LineNr">394 </span> <span class="muControl"> return</span> <span class="Constant">1/true</span> <span id="L395" class="LineNr">395 </span>] </pre> </body> diff --git a/html/edit/007-sandbox-delete.mu.html b/html/edit/007-sandbox-delete.mu.html index 524a7fca..223e8baa 100644 --- a/html/edit/007-sandbox-delete.mu.html +++ b/html/edit/007-sandbox-delete.mu.html @@ -137,7 +137,7 @@ if ('onhashchange' in window) { <span id="L75" class="LineNr"> 75 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> delete? <span id="L76" class="LineNr"> 76 </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="L77" class="LineNr"> 77 </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="L78" class="LineNr"> 78 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> +<span id="L78" class="LineNr"> 78 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-event</span> <span id="L79" class="LineNr"> 79 </span> <span class="Delimiter">}</span> <span id="L80" class="LineNr"> 80 </span>] <span id="L81" class="LineNr"> 81 </span> @@ -189,7 +189,7 @@ if ('onhashchange' in window) { <span id="L127" class="LineNr">127 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> found? <span id="L128" class="LineNr">128 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> prev-sandbox <span class="Special"><-</span> copy curr-sandbox <span id="L129" class="LineNr">129 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> curr-sandbox <span class="Special"><-</span> get *curr-sandbox, <span class="Constant">next-sandbox:offset</span> -<span id="L130" class="LineNr">130 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L130" class="LineNr">130 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L131" class="LineNr">131 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L132" class="LineNr">132 </span> <span class="Conceal">¦</span> <span class="Comment"># snip sandbox out of its list</span> <span id="L133" class="LineNr">133 </span> <span class="Conceal">¦</span> next-sandbox:&:sandbox <span class="Special"><-</span> get *curr-sandbox, <span class="Constant">next-sandbox:offset</span> diff --git a/html/edit/008-sandbox-edit.mu.html b/html/edit/008-sandbox-edit.mu.html index 40bc00ef..23a66210 100644 --- a/html/edit/008-sandbox-edit.mu.html +++ b/html/edit/008-sandbox-edit.mu.html @@ -177,7 +177,7 @@ if ('onhashchange' in window) { <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#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="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>] <span id="L121" class="LineNr">121 </span> diff --git a/html/edit/009-sandbox-test.mu.html b/html/edit/009-sandbox-test.mu.html index 2934ebd7..e092c8f0 100644 --- a/html/edit/009-sandbox-test.mu.html +++ b/html/edit/009-sandbox-test.mu.html @@ -208,7 +208,7 @@ if ('onhashchange' in window) { <span id="L145" class="LineNr">145 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='002-typing.mu.html#L1116'>draw-horizontal</a> <a href='../081print.mu.html#L16'>screen</a>, row, sandbox-left-margin, sandbox-right-margin <span id="L146" class="LineNr">146 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L147" class="LineNr">147 </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="L148" class="LineNr">148 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> +<span id="L148" class="LineNr">148 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-event</span> <span id="L149" class="LineNr">149 </span> <span class="Delimiter">}</span> <span id="L150" class="LineNr">150 </span>] <span id="L151" class="LineNr">151 </span> @@ -230,14 +230,14 @@ if ('onhashchange' in window) { <span id="L167" class="LineNr">167 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> found? <span id="L168" class="LineNr">168 </span> <span class="Conceal">¦</span> sandbox <span class="Special"><-</span> copy next-sandbox <span id="L169" class="LineNr">169 </span> <span class="Conceal">¦</span> sandbox-index <span class="Special"><-</span> add sandbox-index,<span class="Constant"> 1</span> -<span id="L170" class="LineNr">170 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L170" class="LineNr">170 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L171" class="LineNr">171 </span> <span class="Delimiter">}</span> <span id="L172" class="LineNr">172 </span> <span class="Comment"># return sandbox if click is in its output region</span> <span id="L173" class="LineNr">173 </span> response-starting-row:num <span class="Special"><-</span> get *sandbox, <span class="Constant">response-starting-row-on-screen:offset</span> <span id="L174" class="LineNr">174 </span> <span class="muControl">return-unless</span> response-starting-row, <span class="Constant">0/no-click-in-sandbox-output</span>, <span class="Constant">0/sandbox-index</span> <span id="L175" class="LineNr">175 </span> click-in-response?:bool <span class="Special"><-</span> greater-or-equal click-row, response-starting-row <span id="L176" class="LineNr">176 </span> <span class="muControl">return-unless</span> click-in-response?, <span class="Constant">0/no-click-in-sandbox-output</span>, <span class="Constant">0/sandbox-index</span> -<span id="L177" class="LineNr">177 </span> <span class="muControl">return</span> sandbox, sandbox-index +<span id="L177" class="LineNr">177 </span> <span class="muControl"> return</span> sandbox, sandbox-index <span id="L178" class="LineNr">178 </span>] <span id="L179" class="LineNr">179 </span> <span id="L180" class="LineNr">180 </span><span class="muRecipe">def</span> <a href='009-sandbox-test.mu.html#L180'>toggle-expected-response</a> sandbox:&:sandbox<span class="muRecipe"> -> </span>sandbox:&:sandbox [ @@ -263,7 +263,7 @@ if ('onhashchange' in window) { <span id="L200" class="LineNr">200 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> sandbox-response <span id="L201" class="LineNr">201 </span> <span class="Conceal">¦</span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">response-starting-row-on-screen:offset</span>, row <span id="L202" class="LineNr">202 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> <a href='009-sandbox-test.mu.html#L207'>render-sandbox-response</a> <a href='../081print.mu.html#L16'>screen</a>, sandbox, left, right -<span id="L203" class="LineNr">203 </span> <span class="Conceal">¦</span> <span class="muControl">jump</span> <span class="Constant">+render-sandbox-end</span> +<span id="L203" class="LineNr">203 </span> <span class="Conceal">¦</span><span class="muControl"> jump</span> <span class="Constant">+render-sandbox-end</span> <span id="L204" class="LineNr">204 </span> <span class="Delimiter">}</span> <span id="L205" class="LineNr">205 </span>] <span id="L206" class="LineNr">206 </span> @@ -276,7 +276,7 @@ if ('onhashchange' in window) { <span id="L213" class="LineNr">213 </span> <span class="Delimiter">{</span> <span id="L214" class="LineNr">214 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> expected-response <span id="L215" class="LineNr">215 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> <a href='005-sandbox.mu.html#L398'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, sandbox-response, left, right, <span class="Constant">245/grey</span>, row -<span id="L216" class="LineNr">216 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L216" class="LineNr">216 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L217" class="LineNr">217 </span> <span class="Delimiter">}</span> <span id="L218" class="LineNr">218 </span> response-is-expected?:bool <span class="Special"><-</span> equal expected-response, sandbox-response <span id="L219" class="LineNr">219 </span> <span class="Delimiter">{</span> diff --git a/html/edit/010-sandbox-trace.mu.html b/html/edit/010-sandbox-trace.mu.html index 10435b66..a37ec663 100644 --- a/html/edit/010-sandbox-trace.mu.html +++ b/html/edit/010-sandbox-trace.mu.html @@ -146,7 +146,7 @@ if ('onhashchange' in window) { <span id="L83" class="LineNr"> 83 </span> <span class="Conceal">¦</span> <span class="Constant">[lesson/recipes.mu]</span> <span class="Special"><-</span> [ <span id="L84" class="LineNr"> 84 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Constant">|recipe</span> foo <span class="Constant">[|</span> <span id="L85" class="LineNr"> 85 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> | stash [abc]</span>| -<span id="L86" class="LineNr"> 86 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Constant">|</span> <span class="muControl">reply</span> 4| +<span id="L86" class="LineNr"> 86 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Constant">|</span> <span class="muControl"> reply</span> 4| <span id="L87" class="LineNr"> 87 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> |]|</span> <span id="L88" class="LineNr"> 88 </span> <span class="Conceal">¦</span> ] <span id="L89" class="LineNr"> 89 </span> ] @@ -268,7 +268,7 @@ if ('onhashchange' in window) { <span id="L205" class="LineNr">205 </span> <span class="Conceal">¦</span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">display-trace?:offset</span>, x <span id="L206" class="LineNr">206 </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="L207" class="LineNr">207 </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="L208" class="LineNr">208 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> +<span id="L208" class="LineNr">208 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span class="Constant">+next-event</span> <span id="L209" class="LineNr">209 </span> <span class="Delimiter">}</span> <span id="L210" class="LineNr">210 </span>] <span id="L211" class="LineNr">211 </span> @@ -288,7 +288,7 @@ if ('onhashchange' in window) { <span id="L225" class="LineNr">225 </span> <span class="Conceal">¦</span> found?:bool <span class="Special"><-</span> lesser-than click-row, next-start <span id="L226" class="LineNr">226 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> found? <span id="L227" class="LineNr">227 </span> <span class="Conceal">¦</span> sandbox <span class="Special"><-</span> copy next-sandbox -<span id="L228" class="LineNr">228 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> +<span id="L228" class="LineNr">228 </span> <span class="Conceal">¦</span><span class="muControl"> loop</span> <span id="L229" class="LineNr">229 </span> <span class="Delimiter">}</span> <span id="L230" class="LineNr">230 </span> <span class="Comment"># return sandbox if click is in its code region</span> <span id="L231" class="LineNr">231 </span> code-ending-row:num <span class="Special"><-</span> get *sandbox, <span class="Constant">code-ending-row-on-screen:offset</span> @@ -298,9 +298,9 @@ if ('onhashchange' in window) { <span id="L235" class="LineNr">235 </span> click-on-sandbox-code?:bool <span class="Special"><-</span> and click-above-response?, click-below-menu? <span id="L236" class="LineNr">236 </span> <span class="Delimiter">{</span> <span id="L237" class="LineNr">237 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> click-on-sandbox-code? -<span id="L238" class="LineNr">238 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">0/no-click-in-sandbox-output</span> +<span id="L238" class="LineNr">238 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">0/no-click-in-sandbox-output</span> <span id="L239" class="LineNr">239 </span> <span class="Delimiter">}</span> -<span id="L240" class="LineNr">240 </span> <span class="muControl">return</span> sandbox +<span id="L240" class="LineNr">240 </span> <span class="muControl"> return</span> sandbox <span id="L241" class="LineNr">241 </span>] <span id="L242" class="LineNr">242 </span> <span id="L243" class="LineNr">243 </span><span class="Comment"># when rendering a sandbox, dump its trace before response/warning if display-trace? property is set</span> diff --git a/html/edit/011-errors.mu.html b/html/edit/011-errors.mu.html index 13c73c2b..f694b5b9 100644 --- a/html/edit/011-errors.mu.html +++ b/html/edit/011-errors.mu.html @@ -81,7 +81,7 @@ if ('onhashchange' in window) { <span id="L18" class="LineNr"> 18 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> recipe-errors <span id="L19" class="LineNr"> 19 </span> <span class="Conceal">¦</span> <a href='005-sandbox.mu.html#L217'>update-status</a> <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[errors found ]</span>, <span class="Constant">1/red</span> <span id="L20" class="LineNr"> 20 </span> <span class="Conceal">¦</span> errors-found? <span class="Special"><-</span> copy <span class="Constant">1/true</span> -<span id="L21" class="LineNr"> 21 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> +<span id="L21" class="LineNr"> 21 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span id="L22" class="LineNr"> 22 </span> <span class="Delimiter">}</span> <span id="L23" class="LineNr"> 23 </span> errors-found? <span class="Special"><-</span> copy <span class="Constant">0/false</span> <span id="L24" class="LineNr"> 24 </span>] @@ -190,7 +190,7 @@ if ('onhashchange' in window) { <span id="L127" class="LineNr">127 </span> <span class="Conceal">¦</span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">response-starting-row-on-screen:offset</span>,<span class="Constant"> 0</span> <span class="Comment"># no response</span> <span id="L128" class="LineNr">128 </span> <span class="Conceal">¦</span> row, <a href='../081print.mu.html#L16'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L398'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, sandbox-errors, left, right, <span class="Constant">1/red</span>, row <span id="L129" class="LineNr">129 </span> <span class="Conceal">¦</span> <span class="Comment"># don't try to print anything more for this sandbox</span> -<span id="L130" class="LineNr">130 </span> <span class="Conceal">¦</span> <span class="muControl">jump</span> <span class="Constant">+render-sandbox-end</span> +<span id="L130" class="LineNr">130 </span> <span class="Conceal">¦</span><span class="muControl"> jump</span> <span class="Constant">+render-sandbox-end</span> <span id="L131" class="LineNr">131 </span> <span class="Delimiter">}</span> <span id="L132" class="LineNr">132 </span>] <span id="L133" class="LineNr">133 </span> @@ -866,7 +866,7 @@ if ('onhashchange' in window) { <span id="L803" class="LineNr">803 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> | b:num <- next-ingredient|</span> <span id="L804" class="LineNr">804 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> | stash [dividing by]</span>, b| <span id="L805" class="LineNr">805 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Constant">|</span> _, c:num <span class="Special"><-</span> divide-with-remainder a, b| -<span id="L806" class="LineNr">806 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Constant">|</span> <span class="muControl">reply</span> b| +<span id="L806" class="LineNr">806 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Constant">|</span> <span class="muControl"> reply</span> b| <span id="L807" class="LineNr">807 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> |]|</span> <span id="L808" class="LineNr">808 </span> <span class="Conceal">¦</span> ] <span id="L809" class="LineNr">809 </span> ] diff --git a/html/edit/012-editor-undo.mu.html b/html/edit/012-editor-undo.mu.html index 0a88703f..9306b1c8 100644 --- a/html/edit/012-editor-undo.mu.html +++ b/html/edit/012-editor-undo.mu.html @@ -139,7 +139,7 @@ if ('onhashchange' in window) { <span id="L76" class="LineNr"> 76 </span> <span class="Conceal">¦</span> redo <span class="Special"><-</span> push op, redo <span id="L77" class="LineNr"> 77 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">redo:offset</span>, redo <span id="L78" class="LineNr"> 78 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <a href='012-editor-undo.mu.html#L78'><handle-undo></a></span> -<span id="L79" class="LineNr"> 79 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">1/go-render</span> +<span id="L79" class="LineNr"> 79 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">1/go-render</span> <span id="L80" class="LineNr"> 80 </span> <span class="Delimiter">}</span> <span id="L81" class="LineNr"> 81 </span>] <span id="L82" class="LineNr"> 82 </span> @@ -157,7 +157,7 @@ if ('onhashchange' in window) { <span id="L94" class="LineNr"> 94 </span> <span class="Conceal">¦</span> undo <span class="Special"><-</span> push op, undo <span id="L95" class="LineNr"> 95 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">undo:offset</span>, undo <span id="L96" class="LineNr"> 96 </span><span class="Constant"> </span><span class="Conceal">¦</span><span class="Constant"> <a href='012-editor-undo.mu.html#L96'><handle-redo></a></span> -<span id="L97" class="LineNr"> 97 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span class="Constant">1/go-render</span> +<span id="L97" class="LineNr"> 97 </span> <span class="Conceal">¦</span><span class="muControl"> return</span> <span class="Constant">1/go-render</span> <span id="L98" class="LineNr"> 98 </span> <span class="Delimiter">}</span> <span id="L99" class="LineNr"> 99 </span>] <span id="L100" class="LineNr"> 100 </span> @@ -227,7 +227,7 @@ if ('onhashchange' in window) { <span id="L164" class="LineNr"> 164 </span> <span class="Conceal">¦</span> typing <span class="Special"><-</span> put typing, <span class="Constant">after-column:offset</span>, cursor-column <span id="L165" class="LineNr"> 165 </span> <span class="Conceal">¦</span> typing <span class="Special"><-</span> put typing, <span class="Constant">after-top-of-screen:offset</span>, top-after <span id="L166" class="LineNr"> 166 </span> <span class="Conceal">¦</span> *op <span class="Special"><-</span> merge <span class="Constant">0/insert-operation</span>, typing -<span id="L167" class="LineNr"> 167 </span> <span class="Conceal">¦</span> <span class="muControl">break</span> <span class="Constant">+done-adding-insert-operation</span> +<span id="L167" class="LineNr"> 167 </span> <span class="Conceal">¦</span><span class="muControl"> break</span> <span class="Constant">+done-adding-insert-operation</span> <span id="L168" class="LineNr"> 168 </span> <span class="Delimiter">}</span> <span id="L169" class="LineNr"> 169 </span> <span class="Comment"># if not, create a new operation</span> <span id="L170" class="LineNr"> 170 </span> insert-from:&:<a href='../065duplex_list.mu.html#L3'>duplex-list</a>:char <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L25'>next</a> cursor-before @@ -806,7 +806,7 @@ if ('onhashchange' in window) { <span id="L743" class="LineNr"> 743 </span> <span class="Conceal">¦</span> move <span class="Special"><-</span> put move, <span class="Constant">after-column:offset</span>, cursor-column <span id="L744" class="LineNr"> 744 </span> <span class="Conceal">¦</span> move <span class="Special"><-</span> put move, <span class="Constant">after-top-of-screen:offset</span>, top-after <span id="L745" class="LineNr"> 745 </span> <span class="Conceal">¦</span> *op <span class="Special"><-</span> merge <span class="Constant">1/move-operation</span>, move -<span id="L746" class="LineNr"> 746 </span> <span class="Conceal">¦</span> <span class="muControl">break</span> <span class="Constant">+done-adding-move-operation</span> +<span id="L746" class="LineNr"> 746 </span> <span class="Conceal">¦</span><span class="muControl"> break</span> <span class="Constant">+done-adding-move-operation</span> <span id="L747" class="LineNr"> 747 </span> <span class="Delimiter">}</span> <span id="L748" class="LineNr"> 748 </span> op:&:<a href='012-editor-undo.mu.html#L5'>operation</a> <span class="Special"><-</span> new <span class="Constant"><a href='012-editor-undo.mu.html#L5'>operation</a>:type</span> <span id="L749" class="LineNr"> 749 </span> *op <span class="Special"><-</span> merge <span class="Constant">1/move-operation</span>, cursor-row-before, cursor-column-before, top-before, cursor-row/after, cursor-column/after, top-after, undo-coalesce-tag @@ -1707,7 +1707,7 @@ if ('onhashchange' in window) { <span id="L1644" class="LineNr">1644 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> deletion <span class="Special"><-</span> put deletion, <span class="Constant">after-column:offset</span>, cursor-column <span id="L1645" class="LineNr">1645 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> deletion <span class="Special"><-</span> put deletion, <span class="Constant">after-top-of-screen:offset</span>, top-after <span id="L1646" class="LineNr">1646 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> *op <span class="Special"><-</span> merge <span class="Constant">2/delete-operation</span>, deletion -<span id="L1647" class="LineNr">1647 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break</span> <span class="Constant">+done-adding-backspace-operation</span> +<span id="L1647" class="LineNr">1647 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> break</span> <span class="Constant">+done-adding-backspace-operation</span> <span id="L1648" class="LineNr">1648 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L1649" class="LineNr">1649 </span> <span class="Conceal">¦</span> <span class="Comment"># if not, create a new operation</span> <span id="L1650" class="LineNr">1650 </span> <span class="Conceal">¦</span> op:&:<a href='012-editor-undo.mu.html#L5'>operation</a> <span class="Special"><-</span> new <span class="Constant"><a href='012-editor-undo.mu.html#L5'>operation</a>:type</span> @@ -1934,7 +1934,7 @@ if ('onhashchange' in window) { <span id="L1871" class="LineNr">1871 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> deletion <span class="Special"><-</span> put deletion, <span class="Constant">after-column:offset</span>, cursor-column <span id="L1872" class="LineNr">1872 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> deletion <span class="Special"><-</span> put deletion, <span class="Constant">after-top-of-screen:offset</span>, top-after <span id="L1873" class="LineNr">1873 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> *op <span class="Special"><-</span> merge <span class="Constant">2/delete-operation</span>, deletion -<span id="L1874" class="LineNr">1874 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break</span> <span class="Constant">+done-adding-delete-operation</span> +<span id="L1874" class="LineNr">1874 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span><span class="muControl"> break</span> <span class="Constant">+done-adding-delete-operation</span> <span id="L1875" class="LineNr">1875 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L1876" class="LineNr">1876 </span> <span class="Conceal">¦</span> <span class="Comment"># if not, create a new operation</span> <span id="L1877" class="LineNr">1877 </span> <span class="Conceal">¦</span> op:&:<a href='012-editor-undo.mu.html#L5'>operation</a> <span class="Special"><-</span> new <span class="Constant"><a href='012-editor-undo.mu.html#L5'>operation</a>:type</span> |