diff options
Diffstat (limited to 'html/edit/001-editor.mu.html')
-rw-r--r-- | html/edit/001-editor.mu.html | 24 |
1 files changed, 12 insertions, 12 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 [ |