diff options
Diffstat (limited to 'html/edit/005-sandbox.mu.html')
-rw-r--r-- | html/edit/005-sandbox.mu.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/html/edit/005-sandbox.mu.html b/html/edit/005-sandbox.mu.html index 5c940763..7f27f164 100644 --- a/html/edit/005-sandbox.mu.html +++ b/html/edit/005-sandbox.mu.html @@ -73,7 +73,7 @@ if ('onhashchange' in window) { <span id="L12" class="LineNr"> 12 </span> open-console <span id="L13" class="LineNr"> 13 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <span class="Constant">0/filesystem</span>, <span class="Constant">0/screen</span> <span id="L14" class="LineNr"> 14 </span> env <span class="Special"><-</span> <a href='005-sandbox.mu.html#L417'>restore-sandboxes</a> env -<span id="L15" class="LineNr"> 15 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <span class="Constant">0/screen</span>, env, <a href='001-editor.mu.html#L122'>render</a> +<span id="L15" class="LineNr"> 15 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <span class="Constant">0/screen</span>, env, <a href='001-editor.mu.html#L123'>render</a> <span id="L16" class="LineNr"> 16 </span> <a href='004-programming-environment.mu.html#L39'>event-loop</a> <span class="Constant">0/screen</span>, <span class="Constant">0/console</span>, env, <span class="Constant">0/filesystem</span> <span id="L17" class="LineNr"> 17 </span> <span class="Comment"># never gets here</span> <span id="L18" class="LineNr"> 18 </span>] @@ -191,7 +191,7 @@ if ('onhashchange' in window) { <span id="L130" class="LineNr"> 130 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L208'>update-status</a> <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[running... ]</span>, <span class="Constant">245/grey</span> <span id="L131" class="LineNr"> 131 </span> error?:bool <span class="Special"><-</span> <a href='005-sandbox.mu.html#L143'>run-sandboxes</a> env, <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a> <span id="L132" class="LineNr"> 132 </span> <span class="Comment"># F4 might update warnings and results on both sides</span> -<span id="L133" class="LineNr"> 133 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a> +<span id="L133" class="LineNr"> 133 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a> <span id="L134" class="LineNr"> 134 </span> <span class="Delimiter">{</span> <span id="L135" class="LineNr"> 135 </span> <span class="muControl">break-if</span> error? <span id="L136" class="LineNr"> 136 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L208'>update-status</a> <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[ ]</span>, <span class="Constant">245/grey</span> @@ -307,14 +307,14 @@ if ('onhashchange' in window) { <span id="L246" class="LineNr"> 246 </span> render-current-sandbox?:bool <span class="Special"><-</span> equal render-from,<span class="Constant"> -1</span> <span id="L247" class="LineNr"> 247 </span> <span class="muControl">break-unless</span> render-current-sandbox? <span id="L248" class="LineNr"> 248 </span> row, column, <a href='../081print.mu.html#L4'>screen</a>, current-sandbox <span class="Special"><-</span> call render-editor, <a href='../081print.mu.html#L4'>screen</a>, current-sandbox -<span id="L249" class="LineNr"> 249 </span> <a href='001-editor.mu.html#L223'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, column, left, right +<span id="L249" class="LineNr"> 249 </span> <a href='001-editor.mu.html#L224'>clear-screen-from</a> <a href='../081print.mu.html#L4'>screen</a>, row, column, left, right <span id="L250" class="LineNr"> 250 </span> row <span class="Special"><-</span> add row,<span class="Constant"> 1</span> <span id="L251" class="LineNr"> 251 </span> <span class="Delimiter">}</span> <span id="L252" class="LineNr"> 252 </span> <span class="Comment"># render sandboxes</span> <span id="L253" class="LineNr"> 253 </span> <a href='002-typing.mu.html#L1056'>draw-horizontal</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right <span id="L254" class="LineNr"> 254 </span> sandbox:&:sandbox <span class="Special"><-</span> get *env, <span class="Constant">sandbox:offset</span> <span id="L255" class="LineNr"> 255 </span> row, <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='005-sandbox.mu.html#L259'>render-sandboxes</a> <a href='../081print.mu.html#L4'>screen</a>, sandbox, left, right, row, render-from -<span id="L256" class="LineNr"> 256 </span> <a href='001-editor.mu.html#L238'>clear-rest-of-screen</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right +<span id="L256" class="LineNr"> 256 </span> <a href='001-editor.mu.html#L239'>clear-rest-of-screen</a> <a href='../081print.mu.html#L4'>screen</a>, row, left, right <span id="L257" class="LineNr"> 257 </span>] <span id="L258" class="LineNr"> 258 </span> <span id="L259" class="LineNr"> 259 </span><span class="muRecipe">def</span> <a href='005-sandbox.mu.html#L259'>render-sandboxes</a> <a href='../081print.mu.html#L4'>screen</a>:&:<a href='../081print.mu.html#L4'>screen</a>, sandbox:&:sandbox, left:num, right:num, row:num, render-from:num, idx:num<span class="muRecipe"> -> </span>row:num, <a href='../081print.mu.html#L4'>screen</a>:&:<a href='../081print.mu.html#L4'>screen</a>, sandbox:&:sandbox [ @@ -689,7 +689,7 @@ if ('onhashchange' in window) { <span id="L628" class="LineNr"> 628 </span><span class="muScenario">scenario</span> editor-provides-edited-contents [ <span id="L629" class="LineNr"> 629 </span> <span class="Constant">local-scope</span> <span id="L630" class="LineNr"> 630 </span> assume-screen <span class="Constant">10/width</span>, <span class="Constant">5/height</span> -<span id="L631" class="LineNr"> 631 </span> e:&:editor <span class="Special"><-</span> <a href='001-editor.mu.html#L51'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span> +<span id="L631" class="LineNr"> 631 </span> e:&:editor <span class="Special"><-</span> <a href='001-editor.mu.html#L52'>new-editor</a> <span class="Constant">[abc]</span>, <span class="Constant">0/left</span>, <span class="Constant">10/right</span> <span id="L632" class="LineNr"> 632 </span> assume-console [ <span id="L633" class="LineNr"> 633 </span> left-click<span class="Constant"> 1</span>,<span class="Constant"> 2</span> <span id="L634" class="LineNr"> 634 </span> type <span class="Constant">[def]</span> @@ -713,7 +713,7 @@ if ('onhashchange' in window) { <span id="L652" class="LineNr"> 652 </span> assume-resources [ <span id="L653" class="LineNr"> 653 </span> ] <span id="L654" class="LineNr"> 654 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span> -<span id="L655" class="LineNr"> 655 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a> +<span id="L655" class="LineNr"> 655 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a> <span id="L656" class="LineNr"> 656 </span> assume-console [ <span id="L657" class="LineNr"> 657 </span> press enter <span id="L658" class="LineNr"> 658 </span> press down-arrow @@ -736,7 +736,7 @@ if ('onhashchange' in window) { <span id="L675" class="LineNr"> 675 </span> assume-resources [ <span id="L676" class="LineNr"> 676 </span> ] <span id="L677" class="LineNr"> 677 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span> -<span id="L678" class="LineNr"> 678 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a> +<span id="L678" class="LineNr"> 678 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a> <span id="L679" class="LineNr"> 679 </span> assume-console [ <span id="L680" class="LineNr"> 680 </span> press enter <span id="L681" class="LineNr"> 681 </span> press up-arrow @@ -816,7 +816,7 @@ if ('onhashchange' in window) { <span id="L755" class="LineNr"> 755 </span> assume-resources [ <span id="L756" class="LineNr"> 756 </span> ] <span id="L757" class="LineNr"> 757 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span> -<span id="L758" class="LineNr"> 758 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a> +<span id="L758" class="LineNr"> 758 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a> <span id="L759" class="LineNr"> 759 </span> assume-console [ <span id="L760" class="LineNr"> 760 </span> <span class="Comment"># add a line</span> <span id="L761" class="LineNr"> 761 </span> press enter @@ -844,7 +844,7 @@ if ('onhashchange' in window) { <span id="L783" class="LineNr"> 783 </span> ] <span id="L784" class="LineNr"> 784 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[ab</span> <span id="L785" class="LineNr"> 785 </span><span class="Constant">cd]</span> -<span id="L786" class="LineNr"> 786 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a> +<span id="L786" class="LineNr"> 786 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a> <span id="L787" class="LineNr"> 787 </span> assume-console [ <span id="L788" class="LineNr"> 788 </span> <span class="Comment"># add a line</span> <span id="L789" class="LineNr"> 789 </span> press enter @@ -876,7 +876,7 @@ if ('onhashchange' in window) { <span id="L815" class="LineNr"> 815 </span> assume-resources [ <span id="L816" class="LineNr"> 816 </span> ] <span id="L817" class="LineNr"> 817 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[add 2, 2]</span> -<span id="L818" class="LineNr"> 818 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a> +<span id="L818" class="LineNr"> 818 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a> <span id="L819" class="LineNr"> 819 </span> assume-console [ <span id="L820" class="LineNr"> 820 </span> <span class="Comment"># create a sandbox</span> <span id="L821" class="LineNr"> 821 </span> press F4 @@ -946,7 +946,7 @@ if ('onhashchange' in window) { <span id="L885" class="LineNr"> 885 </span> *env <span class="Special"><-</span> put *env, <span class="Constant">render-from:offset</span>, render-from <span id="L886" class="LineNr"> 886 </span> <span class="Delimiter">}</span> <span id="L887" class="LineNr"> 887 </span> <a href='../081print.mu.html#L623'>hide-screen</a> <a href='../081print.mu.html#L4'>screen</a> -<span id="L888" class="LineNr"> 888 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a> +<span id="L888" class="LineNr"> 888 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a> <span id="L889" class="LineNr"> 889 </span> <a href='../081print.mu.html#L631'>show-screen</a> <a href='../081print.mu.html#L4'>screen</a> <span id="L890" class="LineNr"> 890 </span> <span class="muControl">jump</span> <span class="Constant">+finish-event</span> <span id="L891" class="LineNr"> 891 </span> <span class="Delimiter">}</span> @@ -977,7 +977,7 @@ if ('onhashchange' in window) { <span id="L916" class="LineNr"> 916 </span> render-from <span class="Special"><-</span> subtract render-from,<span class="Constant"> 1</span> <span id="L917" class="LineNr"> 917 </span> *env <span class="Special"><-</span> put *env, <span class="Constant">render-from:offset</span>, render-from <span id="L918" class="LineNr"> 918 </span> <a href='../081print.mu.html#L623'>hide-screen</a> <a href='../081print.mu.html#L4'>screen</a> -<span id="L919" class="LineNr"> 919 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a> +<span id="L919" class="LineNr"> 919 </span> <a href='../081print.mu.html#L4'>screen</a> <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L496'>render-sandbox-side</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a> <span id="L920" class="LineNr"> 920 </span> <a href='../081print.mu.html#L631'>show-screen</a> <a href='../081print.mu.html#L4'>screen</a> <span id="L921" class="LineNr"> 921 </span> <span class="muControl">jump</span> <span class="Constant">+finish-event</span> <span id="L922" class="LineNr"> 922 </span> <span class="Delimiter">}</span> @@ -1014,7 +1014,7 @@ if ('onhashchange' in window) { <span id="L953" class="LineNr"> 953 </span> ] <span id="L954" class="LineNr"> 954 </span> <span class="Comment"># create a sandbox</span> <span id="L955" class="LineNr"> 955 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[add 2, 2]</span> -<span id="L956" class="LineNr"> 956 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a> +<span id="L956" class="LineNr"> 956 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a> <span id="L957" class="LineNr"> 957 </span> assume-console [ <span id="L958" class="LineNr"> 958 </span> press F4 <span id="L959" class="LineNr"> 959 </span> ] @@ -1046,7 +1046,7 @@ if ('onhashchange' in window) { <span id="L985" class="LineNr"> 985 </span> assume-resources [ <span id="L986" class="LineNr"> 986 </span> ] <span id="L987" class="LineNr"> 987 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span> -<span id="L988" class="LineNr"> 988 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a> +<span id="L988" class="LineNr"> 988 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a> <span id="L989" class="LineNr"> 989 </span> <span class="Comment"># create 2 sandboxes</span> <span id="L990" class="LineNr"> 990 </span> assume-console [ <span id="L991" class="LineNr"> 991 </span> press ctrl-n @@ -1199,7 +1199,7 @@ if ('onhashchange' in window) { <span id="L1138" class="LineNr">1138 </span> assume-resources [ <span id="L1139" class="LineNr">1139 </span> ] <span id="L1140" class="LineNr">1140 </span> env:&:environment <span class="Special"><-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L4'>screen</a>, <span class="Constant">[]</span> -<span id="L1141" class="LineNr">1141 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L122'>render</a> +<span id="L1141" class="LineNr">1141 </span> <a href='004-programming-environment.mu.html#L445'>render-all</a> <a href='../081print.mu.html#L4'>screen</a>, env, <a href='001-editor.mu.html#L123'>render</a> <span id="L1142" class="LineNr">1142 </span> <span class="Comment"># create a sandbox</span> <span id="L1143" class="LineNr">1143 </span> assume-console [ <span id="L1144" class="LineNr">1144 </span> press ctrl-n |