diff options
Diffstat (limited to 'html/edit/005-sandbox.mu.html')
-rw-r--r-- | html/edit/005-sandbox.mu.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/html/edit/005-sandbox.mu.html b/html/edit/005-sandbox.mu.html index ed1860fe..8acb95ef 100644 --- a/html/edit/005-sandbox.mu.html +++ b/html/edit/005-sandbox.mu.html @@ -282,7 +282,7 @@ if ('onhashchange' in window) { <span id="L219" class="LineNr"> 219 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L219'>update-status</a> <a href='../081print.mu.html#L4'>screen</a>:&:<a href='../081print.mu.html#L4'>screen</a>, msg:text, color:num<span class="muRecipe"> -> </span><a href='../081print.mu.html#L4'>screen</a>:&:<a href='../081print.mu.html#L4'>screen</a> [ <span id="L220" class="LineNr"> 220 </span> <span class="Constant">local-scope</span> <span id="L221" class="LineNr"> 221 </span> <span class="Constant">load-ingredients</span> -<span id="L222" class="LineNr"> 222 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>,<span class="Constant"> 0</span>,<span class="Constant"> 2</span> +<span id="L222" class="LineNr"> 222 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L4'>screen</a>,<span class="Constant"> 0</span>,<span class="Constant"> 2</span> <span id="L223" class="LineNr"> 223 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> print <a href='../081print.mu.html#L4'>screen</a>, msg, color, <span class="Constant">238/grey/background</span> <span id="L224" class="LineNr"> 224 </span>] <span id="L225" class="LineNr"> 225 </span> @@ -342,13 +342,13 @@ if ('onhashchange' in window) { <span id="L279" class="LineNr"> 279 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> hidden? <span id="L280" class="LineNr"> 280 </span> <span class="Conceal">¦</span> <span class="Comment"># render sandbox menu</span> <span id="L281" class="LineNr"> 281 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> -<span id="L282" class="LineNr"> 282 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, left +<span id="L282" class="LineNr"> 282 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L4'>screen</a>, row, left <span id="L283" class="LineNr"> 283 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L325'>render-sandbox-menu</a> <a href='../081print.mu.html#L4'>screen</a>, idx, left, right <span id="L284" class="LineNr"> 284 </span> <span class="Conceal">¦</span> <span class="Comment"># save menu row so we can detect clicks to it later</span> <span id="L285" class="LineNr"> 285 </span> <span class="Conceal">¦</span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">starting-row-on-screen:offset</span>, row <span id="L286" class="LineNr"> 286 </span> <span class="Conceal">¦</span> <span class="Comment"># render sandbox contents</span> <span id="L287" class="LineNr"> 287 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> -<span id="L288" class="LineNr"> 288 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, left +<span id="L288" class="LineNr"> 288 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L4'>screen</a>, row, left <span id="L289" class="LineNr"> 289 </span> <span class="Conceal">¦</span> sandbox-data:text <span class="Special"><-</span> get *sandbox, <span class="Constant">data:offset</span> <span id="L290" class="LineNr"> 290 </span> <span class="Conceal">¦</span> row, <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='003-shortcuts.mu.html#L1745'>render-code</a> <a href='../081print.mu.html#L4'>screen</a>, sandbox-data, left, right, row <span id="L291" class="LineNr"> 291 </span> <span class="Conceal">¦</span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">code-ending-row-on-screen:offset</span>, row @@ -431,7 +431,7 @@ if ('onhashchange' in window) { <span id="L368" class="LineNr"> 368 </span> <span class="Constant">load-ingredients</span> <span id="L369" class="LineNr"> 369 </span> <span class="muControl">return-unless</span> s <span id="L370" class="LineNr"> 370 </span> column:num <span class="Special"><-</span> copy left -<span id="L371" class="LineNr"> 371 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, column +<span id="L371" class="LineNr"> 371 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L4'>screen</a>, row, column <span id="L372" class="LineNr"> 372 </span> <a href='../081print.mu.html#L748'>screen-height</a>:num <span class="Special"><-</span> <a href='../081print.mu.html#L748'>screen-height</a> <a href='../081print.mu.html#L4'>screen</a> <span id="L373" class="LineNr"> 373 </span> i:num <span class="Special"><-</span> copy<span class="Constant"> 0</span> <span id="L374" class="LineNr"> 374 </span> len:num <span class="Special"><-</span> length *s @@ -457,7 +457,7 @@ if ('onhashchange' in window) { <span id="L394" class="LineNr"> 394 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L395" class="LineNr"> 395 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> <span id="L396" class="LineNr"> 396 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> column <span class="Special"><-</span> copy left -<span id="L397" class="LineNr"> 397 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, column +<span id="L397" class="LineNr"> 397 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L4'>screen</a>, row, column <span id="L398" class="LineNr"> 398 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> i <span class="Special"><-</span> add i,<span class="Constant"> 1</span> <span id="L399" class="LineNr"> 399 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-character</span> <span id="L400" class="LineNr"> 400 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> @@ -470,7 +470,7 @@ if ('onhashchange' in window) { <span id="L407" class="LineNr"> 407 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L4'>screen</a>, wrap-icon, <span class="Constant">245/grey</span> <span id="L408" class="LineNr"> 408 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> column <span class="Special"><-</span> copy left <span id="L409" class="LineNr"> 409 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> -<span id="L410" class="LineNr"> 410 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, column +<span id="L410" class="LineNr"> 410 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L4'>screen</a>, row, column <span id="L411" class="LineNr"> 411 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment"># don't increment i</span> <span id="L412" class="LineNr"> 412 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span class="Constant">+next-character</span> <span id="L413" class="LineNr"> 413 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> @@ -485,7 +485,7 @@ if ('onhashchange' in window) { <span id="L422" class="LineNr"> 422 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> was-at-left? <span id="L423" class="LineNr"> 423 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> <span id="L424" class="LineNr"> 424 </span> <span class="Delimiter">}</span> -<span id="L425" class="LineNr"> 425 </span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, left +<span id="L425" class="LineNr"> 425 </span> move-cursor <a href='../081print.mu.html#L4'>screen</a>, row, left <span id="L426" class="LineNr"> 426 </span>] <span id="L427" class="LineNr"> 427 </span> <span id="L428" class="LineNr"> 428 </span><span class="muScenario">scenario</span> read-text-wraps-barely-long-lines [ @@ -544,7 +544,7 @@ if ('onhashchange' in window) { <span id="L481" class="LineNr"> 481 </span> <span class="muControl">return-unless</span> sandbox-screen <span id="L482" class="LineNr"> 482 </span> <span class="Comment"># print 'screen:'</span> <span id="L483" class="LineNr"> 483 </span> row <span class="Special"><-</span> <a href='005-sandbox.mu.html#L366'>render-text</a> <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[screen:]</span>, left, right, <span class="Constant">245/grey</span>, row -<span id="L484" class="LineNr"> 484 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, left +<span id="L484" class="LineNr"> 484 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L4'>screen</a>, row, left <span id="L485" class="LineNr"> 485 </span> <span class="Comment"># start printing sandbox-screen</span> <span id="L486" class="LineNr"> 486 </span> column:num <span class="Special"><-</span> copy left <span id="L487" class="LineNr"> 487 </span> s-width:num <span class="Special"><-</span> <a href='../081print.mu.html#L735'>screen-width</a> sandbox-screen @@ -561,7 +561,7 @@ if ('onhashchange' in window) { <span id="L498" class="LineNr"> 498 </span> <span class="Conceal">¦</span> done? <span class="Special"><-</span> greater-or-equal row, <a href='../081print.mu.html#L748'>screen-height</a> <span id="L499" class="LineNr"> 499 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> done? <span id="L500" class="LineNr"> 500 </span> <span class="Conceal">¦</span> column <span class="Special"><-</span> copy left -<span id="L501" class="LineNr"> 501 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, row, column +<span id="L501" class="LineNr"> 501 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L4'>screen</a>, row, column <span id="L502" class="LineNr"> 502 </span> <span class="Conceal">¦</span> <span class="Comment"># initial leader for each row: two spaces and a '.'</span> <span id="L503" class="LineNr"> 503 </span> <span class="Conceal">¦</span> space:char <span class="Special"><-</span> copy <span class="Constant">32/space</span> <span id="L504" class="LineNr"> 504 </span> <span class="Conceal">¦</span> print <a href='../081print.mu.html#L4'>screen</a>, space, <span class="Constant">245/grey</span> @@ -995,7 +995,7 @@ if ('onhashchange' in window) { <span id="L932" class="LineNr"> 932 </span> <span class="Conceal">¦</span> scrolling?:bool <span class="Special"><-</span> greater-or-equal render-from,<span class="Constant"> 0</span> <span id="L933" class="LineNr"> 933 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> scrolling? <span id="L934" class="LineNr"> 934 </span> <span class="Conceal">¦</span> cursor-column:num <span class="Special"><-</span> get *current-sandbox, <span class="Constant">left:offset</span> -<span id="L935" class="LineNr"> 935 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='../081print.mu.html#L573'>move-cursor</a> <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">2/row</span>, cursor-column <span class="Comment"># highlighted sandbox will always start at row 2</span> +<span id="L935" class="LineNr"> 935 </span> <span class="Conceal">¦</span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> move-cursor <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">2/row</span>, cursor-column <span class="Comment"># highlighted sandbox will always start at row 2</span> <span id="L936" class="LineNr"> 936 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span id="L937" class="LineNr"> 937 </span> <span class="Delimiter">}</span> <span id="L938" class="LineNr"> 938 </span>] |