about summary refs log tree commit diff stats
path: root/html/edit/008-sandbox-edit.mu.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/edit/008-sandbox-edit.mu.html')
-rw-r--r--html/edit/008-sandbox-edit.mu.html38
1 files changed, 19 insertions, 19 deletions
diff --git a/html/edit/008-sandbox-edit.mu.html b/html/edit/008-sandbox-edit.mu.html
index a38ea948..62de3b4d 100644
--- a/html/edit/008-sandbox-edit.mu.html
+++ b/html/edit/008-sandbox-edit.mu.html
@@ -15,16 +15,16 @@ body { font-size: 12pt; font-family: monospace; color: #aaaaaa; background-color
 a { color:#eeeeee; text-decoration: none; }
 a:hover { text-decoration: underline; }
 * { font-size: 12pt; font-size: 1em; }
+.Delimiter { color: #800080; }
 .muRecipe { color: #ff8700; }
-.muScenario { color: #00af00; }
 .Special { color: #c00000; }
-.Delimiter { color: #800080; }
 .SalientComment { color: #00ffff; }
 .Constant { color: #00a0a0; }
 .LineNr { color: #444444; }
+.muControl { color: #c0a020; }
 .Comment { color: #9090ff; }
 .Comment a { color:#0000ee; text-decoration:underline; }
-.muControl { color: #c0a020; }
+.muScenario { color: #00af00; }
 -->
 </style>
 
@@ -69,7 +69,7 @@ if ('onhashchange' in window) {
 <span id="L8" class="LineNr">  8 </span>  assume-resources [
 <span id="L9" class="LineNr">  9 </span>  ]
 <span id="L10" class="LineNr"> 10 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[add 2, 2]</span>
-<span id="L11" class="LineNr"> 11 </span>  <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a>
+<span id="L11" class="LineNr"> 11 </span>  <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L109'>render</a>
 <span id="L12" class="LineNr"> 12 </span>  <span class="Comment"># run it</span>
 <span id="L13" class="LineNr"> 13 </span>  assume-console [
 <span id="L14" class="LineNr"> 14 </span>    press F4
@@ -122,7 +122,7 @@ if ('onhashchange' in window) {
 <span id="L61" class="LineNr"> 61 </span>  assume-resources [
 <span id="L62" class="LineNr"> 62 </span>  ]
 <span id="L63" class="LineNr"> 63 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[add 2, 2]</span>
-<span id="L64" class="LineNr"> 64 </span>  <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a>
+<span id="L64" class="LineNr"> 64 </span>  <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L109'>render</a>
 <span id="L65" class="LineNr"> 65 </span>  <span class="Comment"># run it</span>
 <span id="L66" class="LineNr"> 66 </span>  assume-console [
 <span id="L67" class="LineNr"> 67 </span>    press F4
@@ -174,7 +174,7 @@ if ('onhashchange' in window) {
 <span id="L113" class="LineNr">113 </span>    <span class="muControl">break-unless</span> edit?
 <span id="L114" class="LineNr">114 </span>    edit?, env <span class="Special">&lt;-</span> <a href='008-sandbox-edit.mu.html#L142'>try-edit-sandbox</a> click-row, env
 <span id="L115" class="LineNr">115 </span>    <span class="muControl">break-unless</span> edit?
-<span id="L116" class="LineNr">116 </span>    <a href='../081print.mu.html#L16'>screen</a> <span class="Special">&lt;-</span> render-sandbox-side <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a>
+<span id="L116" class="LineNr">116 </span>    <a href='../081print.mu.html#L16'>screen</a> <span class="Special">&lt;-</span> render-sandbox-side <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L109'>render</a>
 <span id="L117" class="LineNr">117 </span>    <a href='../081print.mu.html#L16'>screen</a> <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L468'>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="muControl"> loop</span> <span class="Constant">+next-event</span>
 <span id="L119" class="LineNr">119 </span>  <span class="Delimiter">}</span>
@@ -186,7 +186,7 @@ if ('onhashchange' in window) {
 <span id="L125" class="LineNr">125 </span>  <span class="Constant">load-inputs</span>
 <span id="L126" class="LineNr">126 </span>  <span class="Comment"># are we below the sandbox editor?</span>
 <span id="L127" class="LineNr">127 </span>  click-sandbox-area?:bool <span class="Special">&lt;-</span> <a href='006-sandbox-copy.mu.html#L190'>click-on-sandbox-area?</a> click-row, click-column, env
-<span id="L128" class="LineNr">128 </span>  <span class="muControl">return-unless</span> click-sandbox-area?, <span class="Constant">0/false</span>
+<span id="L128" class="LineNr">128 </span>  <span class="muControl">return-unless</span> click-sandbox-area?,<span class="Constant"> false</span>
 <span id="L129" class="LineNr">129 </span>  <span class="Comment"># narrower, is the click in the columns spanning the 'edit' button?</span>
 <span id="L130" class="LineNr">130 </span>  first-sandbox:&amp;:editor <span class="Special">&lt;-</span> get *env, <span class="Constant">current-sandbox:offset</span>
 <span id="L131" class="LineNr">131 </span>  assert first-sandbox, <span class="Constant">[!!]</span>
@@ -194,7 +194,7 @@ if ('onhashchange' in window) {
 <span id="L133" class="LineNr">133 </span>  sandbox-right-margin:num <span class="Special">&lt;-</span> get *first-sandbox, <span class="Constant">right:offset</span>
 <span id="L134" class="LineNr">134 </span>  edit-button-left:num, edit-button-right:num, _ <span class="Special">&lt;-</span> <a href='005-sandbox.mu.html#L376'>sandbox-menu-columns</a> sandbox-left-margin, sandbox-right-margin
 <span id="L135" class="LineNr">135 </span>  edit-button-vertical-area?:bool <span class="Special">&lt;-</span> <a href='006-sandbox-copy.mu.html#L211'>within-range?</a> click-column, edit-button-left, edit-button-right
-<span id="L136" class="LineNr">136 </span>  <span class="muControl">return-unless</span> edit-button-vertical-area?, <span class="Constant">0/false</span>
+<span id="L136" class="LineNr">136 </span>  <span class="muControl">return-unless</span> edit-button-vertical-area?,<span class="Constant"> false</span>
 <span id="L137" class="LineNr">137 </span>  <span class="Comment"># finally, is sandbox editor empty?</span>
 <span id="L138" class="LineNr">138 </span>  current-sandbox:&amp;:editor <span class="Special">&lt;-</span> get *env, <span class="Constant">current-sandbox:offset</span>
 <span id="L139" class="LineNr">139 </span>  result <span class="Special">&lt;-</span> <a href='006-sandbox-copy.mu.html#L203'>empty-editor?</a> current-sandbox
@@ -205,8 +205,8 @@ if ('onhashchange' in window) {
 <span id="L144" class="LineNr">144 </span>  <span class="Constant">load-inputs</span>
 <span id="L145" class="LineNr">145 </span>  <span class="Comment"># identify the sandbox to edit, if the click was actually on the 'edit' button</span>
 <span id="L146" class="LineNr">146 </span>  sandbox:&amp;:sandbox <span class="Special">&lt;-</span> <a href='006-sandbox-copy.mu.html#L175'>find-sandbox</a> env, click-row
-<span id="L147" class="LineNr">147 </span>  <span class="muControl">return-unless</span> sandbox, <span class="Constant">0/false</span>
-<span id="L148" class="LineNr">148 </span>  clicked-on-edit-button? <span class="Special">&lt;-</span> copy <span class="Constant">1/true</span>
+<span id="L147" class="LineNr">147 </span>  <span class="muControl">return-unless</span> sandbox,<span class="Constant"> false</span>
+<span id="L148" class="LineNr">148 </span>  clicked-on-edit-button? <span class="Special">&lt;-</span> copy<span class="Constant"> true</span>
 <span id="L149" class="LineNr">149 </span>  <span class="Comment"># 'edit' button = 'copy' button + 'delete' button</span>
 <span id="L150" class="LineNr">150 </span>  text:text <span class="Special">&lt;-</span> get *sandbox, <span class="Constant">data:offset</span>
 <span id="L151" class="LineNr">151 </span>  current-sandbox:&amp;:editor <span class="Special">&lt;-</span> get *env, <span class="Constant">current-sandbox:offset</span>
@@ -215,7 +215,7 @@ if ('onhashchange' in window) {
 <span id="L154" class="LineNr">154 </span>  <span class="Comment"># reset scroll</span>
 <span id="L155" class="LineNr">155 </span>  *env <span class="Special">&lt;-</span> put *env, <span class="Constant">render-from:offset</span>,<span class="Constant"> -1</span>
 <span id="L156" class="LineNr">156 </span>  <span class="Comment"># position cursor in sandbox editor</span>
-<span id="L157" class="LineNr">157 </span>  *env <span class="Special">&lt;-</span> put *env, <span class="Constant">sandbox-in-focus?:offset</span>, <span class="Constant">1/true</span>
+<span id="L157" class="LineNr">157 </span>  *env <span class="Special">&lt;-</span> put *env, <span class="Constant">sandbox-in-focus?:offset</span>,<span class="Constant"> true</span>
 <span id="L158" class="LineNr">158 </span>]
 <span id="L159" class="LineNr">159 </span>
 <span id="L160" class="LineNr">160 </span><span class="muScenario">scenario</span> sandbox-with-print-can-be-edited [
@@ -227,7 +227,7 @@ if ('onhashchange' in window) {
 <span id="L166" class="LineNr">166 </span>  ]
 <span id="L167" class="LineNr">167 </span>  <span class="Comment"># right editor contains a print instruction</span>
 <span id="L168" class="LineNr">168 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[print <a href='../081print.mu.html#L16'>screen</a>, 4]</span>
-<span id="L169" class="LineNr">169 </span>  <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a>
+<span id="L169" class="LineNr">169 </span>  <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L109'>render</a>
 <span id="L170" class="LineNr">170 </span>  <span class="Comment"># run the sandbox</span>
 <span id="L171" class="LineNr">171 </span>  assume-console [
 <span id="L172" class="LineNr">172 </span>    press F4
@@ -272,7 +272,7 @@ if ('onhashchange' in window) {
 <span id="L211" class="LineNr">211 </span>  assume-resources [
 <span id="L212" class="LineNr">212 </span>  ]
 <span id="L213" class="LineNr">213 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[]</span>
-<span id="L214" class="LineNr">214 </span>  <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a>
+<span id="L214" class="LineNr">214 </span>  <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L109'>render</a>
 <span id="L215" class="LineNr">215 </span>  <span class="Comment"># create 2 sandboxes and scroll to second</span>
 <span id="L216" class="LineNr">216 </span>  assume-console [
 <span id="L217" class="LineNr">217 </span>    press ctrl-n
@@ -280,8 +280,8 @@ if ('onhashchange' in window) {
 <span id="L219" class="LineNr">219 </span>    press F4
 <span id="L220" class="LineNr">220 </span>    type <span class="Constant">[add 1, 1]</span>
 <span id="L221" class="LineNr">221 </span>    press F4
-<span id="L222" class="LineNr">222 </span>    press <a href='003-shortcuts.mu.html#L3597'>page-down</a>
-<span id="L223" class="LineNr">223 </span>    press <a href='003-shortcuts.mu.html#L3597'>page-down</a>
+<span id="L222" class="LineNr">222 </span>    press <a href='003-shortcuts.mu.html#L3610'>page-down</a>
+<span id="L223" class="LineNr">223 </span>    press <a href='003-shortcuts.mu.html#L3610'>page-down</a>
 <span id="L224" class="LineNr">224 </span>  ]
 <span id="L225" class="LineNr">225 </span>  <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a>
 <span id="L226" class="LineNr">226 </span>  screen-should-contain [
@@ -321,7 +321,7 @@ if ('onhashchange' in window) {
 <span id="L260" class="LineNr">260 </span>  assume-resources [
 <span id="L261" class="LineNr">261 </span>  ]
 <span id="L262" class="LineNr">262 </span>  env:&amp;:environment <span class="Special">&lt;-</span> <a href='004-programming-environment.mu.html#L21'>new-programming-environment</a> <a href='../088file.mu.html#L11'>resources</a>, <a href='../081print.mu.html#L16'>screen</a>, <span class="Constant">[]</span>
-<span id="L263" class="LineNr">263 </span>  <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L107'>render</a>
+<span id="L263" class="LineNr">263 </span>  <a href='004-programming-environment.mu.html#L402'>render-all</a> <a href='../081print.mu.html#L16'>screen</a>, env, <a href='001-editor.mu.html#L109'>render</a>
 <span id="L264" class="LineNr">264 </span>  <span class="Comment"># create 2 sandboxes</span>
 <span id="L265" class="LineNr">265 </span>  assume-console [
 <span id="L266" class="LineNr">266 </span>    press ctrl-n
@@ -366,9 +366,9 @@ if ('onhashchange' in window) {
 <span id="L305" class="LineNr">305 </span>  ]
 <span id="L306" class="LineNr">306 </span>  <span class="Comment"># now try to scroll past end</span>
 <span id="L307" class="LineNr">307 </span>  assume-console [
-<span id="L308" class="LineNr">308 </span>    press <a href='003-shortcuts.mu.html#L3597'>page-down</a>
-<span id="L309" class="LineNr">309 </span>    press <a href='003-shortcuts.mu.html#L3597'>page-down</a>
-<span id="L310" class="LineNr">310 </span>    press <a href='003-shortcuts.mu.html#L3597'>page-down</a>
+<span id="L308" class="LineNr">308 </span>    press <a href='003-shortcuts.mu.html#L3610'>page-down</a>
+<span id="L309" class="LineNr">309 </span>    press <a href='003-shortcuts.mu.html#L3610'>page-down</a>
+<span id="L310" class="LineNr">310 </span>    press <a href='003-shortcuts.mu.html#L3610'>page-down</a>
 <span id="L311" class="LineNr">311 </span>  ]
 <span id="L312" class="LineNr">312 </span>  run [
 <span id="L313" class="LineNr">313 </span>    <a href='004-programming-environment.mu.html#L39'>event-loop</a> <a href='../081print.mu.html#L16'>screen</a>, <a href='../084console.mu.html#L23'>console</a>, env, <a href='../088file.mu.html#L11'>resources</a>