about summary refs log tree commit diff stats
path: root/html/084console.mu.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-27 17:07:52 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-27 17:08:29 -0700
commit5fe060d582d4a82444243a28b18085c971a85628 (patch)
tree7a13eb020d0a9cab5d4195da931a373f575229ab /html/084console.mu.html
parent013d95266d563a3f531c13eba6d2a6bfe18f8808 (diff)
downloadmu-5fe060d582d4a82444243a28b18085c971a85628.tar.gz
4447
Diffstat (limited to 'html/084console.mu.html')
-rw-r--r--html/084console.mu.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/html/084console.mu.html b/html/084console.mu.html
index 7928454d..58efc4c0 100644
--- a/html/084console.mu.html
+++ b/html/084console.mu.html
@@ -15,6 +15,7 @@ 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; }
+.muData { color: #ffff00; }
 .muRecipe { color: #ff8700; }
 .Special { color: #c00000; }
 .Delimiter { color: #800080; }
@@ -23,7 +24,6 @@ a:hover { text-decoration: underline; }
 .Constant { color: #00a0a0; }
 .LineNr { color: #444444; }
 .muControl { color: #c0a020; }
-.muData { color: #ffff00; }
 -->
 </style>
 
@@ -104,16 +104,16 @@ if ('onhashchange' in window) {
 <span id="L44" class="LineNr"> 44 </span>      done?:bool <span class="Special">&lt;-</span> greater-or-equal current-event-index, max
 <span id="L45" class="LineNr"> 45 </span>      <span class="muControl">break-unless</span> done?
 <span id="L46" class="LineNr"> 46 </span>      dummy:&amp;:<a href='084console.mu.html#L4'>event</a> <span class="Special">&lt;-</span> new <span class="Constant"><a href='084console.mu.html#L4'>event</a>:type</span>
-<span id="L47" class="LineNr"> 47 </span>     <span class="muControl"> return</span> *dummy, <span class="Constant">1/found</span>, <span class="Constant">1/quit</span>
+<span id="L47" class="LineNr"> 47 </span>     <span class="muControl"> return</span> *dummy,<span class="Constant"> true/found, true/quit</span>
 <span id="L48" class="LineNr"> 48 </span>    <span class="Delimiter">}</span>
 <span id="L49" class="LineNr"> 49 </span>    result <span class="Special">&lt;-</span> index *buf, current-event-index
 <span id="L50" class="LineNr"> 50 </span>    current-event-index <span class="Special">&lt;-</span> add current-event-index,<span class="Constant"> 1</span>
 <span id="L51" class="LineNr"> 51 </span>    *console <span class="Special">&lt;-</span> put *console, <span class="Constant">current-event-index:offset</span>, current-event-index
-<span id="L52" class="LineNr"> 52 </span>   <span class="muControl"> return</span> result, <span class="Constant">1/found</span>, <span class="Constant">0/quit</span>
+<span id="L52" class="LineNr"> 52 </span>   <span class="muControl"> return</span> result,<span class="Constant"> true/found, false/quit</span>
 <span id="L53" class="LineNr"> 53 </span>  <span class="Delimiter">}</span>
 <span id="L54" class="LineNr"> 54 </span>  switch  <span class="Comment"># real event source is infrequent; avoid polling it too much</span>
 <span id="L55" class="LineNr"> 55 </span>  result:<a href='084console.mu.html#L4'>event</a>, found?:bool <span class="Special">&lt;-</span> check-for-interaction
-<span id="L56" class="LineNr"> 56 </span> <span class="muControl"> return</span> result, found?, <span class="Constant">0/quit</span>
+<span id="L56" class="LineNr"> 56 </span> <span class="muControl"> return</span> result, found?,<span class="Constant"> false/quit</span>
 <span id="L57" class="LineNr"> 57 </span>]
 <span id="L58" class="LineNr"> 58 </span>
 <span id="L59" class="LineNr"> 59 </span><span class="Comment"># variant of read-event for just keyboard events. Discards everything that</span>
@@ -126,8 +126,8 @@ if ('onhashchange' in window) {
 <span id="L66" class="LineNr"> 66 </span>  <span class="muControl">return-if</span> quit?,<span class="Constant"> 0</span>, found?, quit?
 <span id="L67" class="LineNr"> 67 </span>  <span class="muControl">return-unless</span> found?,<span class="Constant"> 0</span>, found?, quit?
 <span id="L68" class="LineNr"> 68 </span>  c:char, converted?:bool <span class="Special">&lt;-</span> maybe-convert x, <span class="Constant">text:variant</span>
-<span id="L69" class="LineNr"> 69 </span>  <span class="muControl">return-unless</span> converted?,<span class="Constant"> 0</span>, <span class="Constant">0/found</span>, <span class="Constant">0/quit</span>
-<span id="L70" class="LineNr"> 70 </span> <span class="muControl"> return</span> c, <span class="Constant">1/found</span>, <span class="Constant">0/quit</span>
+<span id="L69" class="LineNr"> 69 </span>  <span class="muControl">return-unless</span> converted?,<span class="Constant"> 0</span>,<span class="Constant"> false/found, false/quit</span>
+<span id="L70" class="LineNr"> 70 </span> <span class="muControl"> return</span> c,<span class="Constant"> true/found, false/quit</span>
 <span id="L71" class="LineNr"> 71 </span>]
 <span id="L72" class="LineNr"> 72 </span>
 <span id="L73" class="LineNr"> 73 </span><span class="muRecipe">def</span> <a href='084console.mu.html#L73'>send-keys-to-channel</a> <a href='084console.mu.html#L23'>console</a>:&amp;:<a href='084console.mu.html#L23'>console</a>, chan:&amp;:<a href='075channel.mu.html#L40'>sink</a>:char, <a href='081print.mu.html#L16'>screen</a>:&amp;:<a href='081print.mu.html#L16'>screen</a><span class="muRecipe"> -&gt; </span><a href='084console.mu.html#L23'>console</a>:&amp;:<a href='084console.mu.html#L23'>console</a>, chan:&amp;:<a href='075channel.mu.html#L40'>sink</a>:char, <a href='081print.mu.html#L16'>screen</a>:&amp;:<a href='081print.mu.html#L16'>screen</a> [
@@ -159,7 +159,7 @@ if ('onhashchange' in window) {
 <span id="L99" class="LineNr"> 99 </span><span class="muRecipe">def</span> <a href='084console.mu.html#L99'>has-more-events?</a> <a href='084console.mu.html#L23'>console</a>:&amp;:<a href='084console.mu.html#L23'>console</a><span class="muRecipe"> -&gt; </span>result:bool [
 <span id="L100" class="LineNr">100 </span>  <span class="Constant">local-scope</span>
 <span id="L101" class="LineNr">101 </span>  <span class="Constant">load-inputs</span>
-<span id="L102" class="LineNr">102 </span>  <span class="muControl">return-if</span> <a href='084console.mu.html#L23'>console</a>, <span class="Constant">0/false</span>  <span class="Comment"># fake events are processed as soon as they arrive</span>
+<span id="L102" class="LineNr">102 </span>  <span class="muControl">return-if</span> <a href='084console.mu.html#L23'>console</a>,<span class="Constant"> false</span>  <span class="Comment"># fake events are processed as soon as they arrive</span>
 <span id="L103" class="LineNr">103 </span>  result <span class="Special">&lt;-</span> interactions-left?
 <span id="L104" class="LineNr">104 </span>]
 </pre>