summary refs log tree commit diff stats
path: root/doc/pydoc/ranger.gui.widgets.console_mode.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/pydoc/ranger.gui.widgets.console_mode.html')
0 files changed, 0 insertions, 0 deletions
e8fc80f5 ^
107fdd35 ^
f9737251 ^











107fdd35 ^



055a5f71 ^

107fdd35 ^


0a57c4de ^


cc32bb77 ^
c23506f4 ^
1c5efaeb ^
107fdd35 ^
055a5f71 ^





107fdd35 ^
055a5f71 ^

107fdd35 ^
055a5f71 ^

107fdd35 ^
055a5f71 ^

107fdd35 ^
055a5f71 ^



107fdd35 ^
973a05d1 ^





055a5f71 ^
973a05d1 ^

107fdd35 ^


dd11334b ^

107fdd35 ^

055a5f71 ^
107fdd35 ^
055a5f71 ^









973a05d1 ^


055a5f71 ^
















107fdd35 ^


dd11334b ^
107fdd35 ^
055a5f71 ^

107fdd35 ^


973a05d1 ^











b0176d05 ^
107fdd35 ^







055a5f71 ^
107fdd35 ^





dd11334b ^
107fdd35 ^
055a5f71 ^

b0176d05 ^
055a5f71 ^
b0176d05 ^


107fdd35 ^

dd11334b ^

c3d2a7e9 ^
055a5f71 ^

c3d2a7e9 ^


6f3750c6 ^

c3d2a7e9 ^


















107fdd35 ^
dd11334b ^
107fdd35 ^
055a5f71 ^

b0176d05 ^
107fdd35 ^









055a5f71 ^
107fdd35 ^









055a5f71 ^
107fdd35 ^
055a5f71 ^



107fdd35 ^

3a403046 ^
dd11334b ^
107fdd35 ^
055a5f71 ^
06ce95f6 ^

9f0a4081 ^
06ce95f6 ^

6f3750c6 ^
3a403046 ^


06ce95f6 ^

9f0a4081 ^
107fdd35 ^


dd11334b ^
107fdd35 ^
055a5f71 ^




107fdd35 ^


6f3750c6 ^
107fdd35 ^
6f3750c6 ^
46ddf2c2 ^
107fdd35 ^

055a5f71 ^
107fdd35 ^


ada6f5a8 ^
c4a1d69a ^




055a5f71 ^

c4a1d69a ^

055a5f71 ^

c4a1d69a ^
055a5f71 ^
c4a1d69a ^



107fdd35 ^


055a5f71 ^
107fdd35 ^


dd11334b ^

107fdd35 ^
055a5f71 ^

b0176d05 ^
db973457 ^
107fdd35 ^
db973457 ^

107fdd35 ^
dacbe25d ^
107fdd35 ^
c4a1d69a ^







055a5f71 ^


c4a1d69a ^


055a5f71 ^

c4a1d69a ^


107fdd35 ^
c4a1d69a ^






055a5f71 ^

c4a1d69a ^

055a5f71 ^

c4a1d69a ^
055a5f71 ^
c4a1d69a ^







107fdd35 ^


dd11334b ^

107fdd35 ^
055a5f71 ^

b0176d05 ^
6f3750c6 ^
db973457 ^

107fdd35 ^
055a5f71 ^
107fdd35 ^
db973457 ^
c4a1d69a ^


055a5f71 ^


c4a1d69a ^
055a5f71 ^

c4a1d69a ^


107fdd35 ^

055a5f71 ^

db973457 ^


107fdd35 ^

dd11334b ^

107fdd35 ^
055a5f71 ^

b819ea37 ^
055a5f71 ^
b819ea37 ^


107fdd35 ^

dd11334b ^

15d0f679 ^
055a5f71 ^

15d0f679 ^




055a5f71 ^
15d0f679 ^


2e0bc27b ^
15d0f679 ^


a1d14c45 ^
15d0f679 ^


dd11334b ^
e816b124 ^
8e8852fa ^
055a5f71 ^

8e8852fa ^




2260e3bd ^

2e0bc27b ^
2260e3bd ^
2e0bc27b ^
8e8852fa ^

055a5f71 ^
107fdd35 ^
2260e3bd ^
107fdd35 ^

a1d14c45 ^
107fdd35 ^


dd11334b ^
ed228ebb ^
0f2035e4 ^
055a5f71 ^

0f2035e4 ^




055a5f71 ^
0f2035e4 ^
e113fd2b ^
2e0bc27b ^
0f2035e4 ^

a1d14c45 ^
0f2035e4 ^


107fdd35 ^


055a5f71 ^

107fdd35 ^



055a5f71 ^
107fdd35 ^









dd11334b ^
a52e3ea1 ^
107fdd35 ^
055a5f71 ^

6b830277 ^
107fdd35 ^

dd11334b ^
a52e3ea1 ^
107fdd35 ^
generated by cgit-pink 1.4.1-2-gfad0 (git 2.36.2.497.gbbea4dcf42) at 2024-12-11 08:24:17 +0000
(</span><a href='026call.cc.html#L89'>current_instruction</a><span class="Delimiter">().</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">)))</span> <span class="Delimiter">{</span> <span id="L200" class="LineNr">200 </span> <a href='003trace.cc.html#L190'>trace</a><span class="Delimiter">(</span><span class="Constant">9998</span><span class="Delimiter">,</span> <span class="Constant">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;$print: &quot;</span> &lt;&lt; <a href='026call.cc.html#L89'>current_instruction</a><span class="Delimiter">().</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">).</span>name &lt;&lt; <a href='003trace.cc.html#L226'>end</a><span class="Delimiter">();</span> <span id="L201" class="LineNr">201 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>!has_property<span class="Delimiter">(</span><a href='026call.cc.html#L89'>current_instruction</a><span class="Delimiter">().</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">),</span> <span class="Constant">&quot;newline&quot;</span><span class="Delimiter">))</span> <span class="Delimiter">{</span> <span id="L202" class="LineNr">202 </span> cout &lt;&lt; <a href='026call.cc.html#L89'>current_instruction</a><span class="Delimiter">().</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">).</span>name<span class="Delimiter">;</span> <span id="L203" class="LineNr">203 </span> <span class="Delimiter">}</span> <span id="L204" class="LineNr">204 </span> <span class="Comment">// hack: '$print 10' prints '10', but '$print 10/newline' prints '\n'</span> <span id="L205" class="LineNr">205 </span> <span class="Comment">// End $print 10/newline Special-cases</span> <span id="L206" class="LineNr">206 </span> <span class="Normal">else</span> <span class="Delimiter">{</span> <span id="L207" class="LineNr">207 </span> cout &lt;&lt; <span class="cSpecial">'\n'</span><span class="Delimiter">;</span> <span id="L208" class="LineNr">208 </span> <span class="Delimiter">}</span> <span id="L209" class="LineNr">209 </span> <span class="Delimiter">}</span> <span id="L210" class="LineNr">210 </span> <span class="Comment">// End $print Special-cases</span> <span id="L211" class="LineNr">211 </span> <span class="Normal">else</span> <span class="Delimiter">{</span> <span id="L212" class="LineNr">212 </span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> j = <span class="Constant">0</span><span class="Delimiter">;</span> j &lt; <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">));</span> ++j<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L213" class="LineNr">213 </span> <a href='003trace.cc.html#L190'>trace</a><span class="Delimiter">(</span><span class="Constant">9998</span><span class="Delimiter">,</span> <span class="Constant">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;$print: &quot;</span> &lt;&lt; ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">).</span>at<span class="Delimiter">(</span>j<span class="Delimiter">)</span> &lt;&lt; <a href='003trace.cc.html#L226'>end</a><span class="Delimiter">();</span> <span id="L214" class="LineNr">214 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>j &gt; <span class="Constant">0</span><span class="Delimiter">)</span> cout &lt;&lt; <span class="Constant">&quot; &quot;</span><span class="Delimiter">;</span> <span id="L215" class="LineNr">215 </span> cout &lt;&lt; no_scientific<span class="Delimiter">(</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">).</span>at<span class="Delimiter">(</span>j<span class="Delimiter">));</span> <span id="L216" class="LineNr">216 </span> <span class="Delimiter">}</span> <span id="L217" class="LineNr">217 </span> <span class="Delimiter">}</span> <span id="L218" class="LineNr">218 </span> <span class="Delimiter">}</span> <span id="L219" class="LineNr">219 </span> cout<span class="Delimiter">.</span>flush<span class="Delimiter">();</span> <span id="L220" class="LineNr">220 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L221" class="LineNr">221 </span><span class="Delimiter">}</span> <span id="L222" class="LineNr">222 </span> <span id="L223" class="LineNr">223 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span> <span id="L224" class="LineNr">224 </span>_EXIT<span class="Delimiter">,</span> <span id="L225" class="LineNr">225 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span> <span id="L226" class="LineNr">226 </span><a href='001help.cc.html#L221'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;$exit&quot;</span><span class="Delimiter">,</span> _EXIT<span class="Delimiter">);</span> <span id="L227" class="LineNr">227 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span> <span id="L228" class="LineNr">228 </span><span class="Normal">case</span> _EXIT: <span class="Delimiter">{</span> <span id="L229" class="LineNr">229 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L230" class="LineNr">230 </span><span class="Delimiter">}</span> <span id="L231" class="LineNr">231 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span> <span id="L232" class="LineNr">232 </span><span class="Normal">case</span> _EXIT: <span class="Delimiter">{</span> <span id="L233" class="LineNr">233 </span> exit<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">);</span> <span id="L234" class="LineNr">234 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L235" class="LineNr">235 </span><span class="Delimiter">}</span> <span id="L236" class="LineNr">236 </span> <span id="L237" class="LineNr">237 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span> <span id="L238" class="LineNr">238 </span>_SYSTEM<span class="Delimiter">,</span> <span id="L239" class="LineNr">239 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span> <span id="L240" class="LineNr">240 </span><a href='001help.cc.html#L221'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;$system&quot;</span><span class="Delimiter">,</span> _SYSTEM<span class="Delimiter">);</span> <span id="L241" class="LineNr">241 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span> <span id="L242" class="LineNr">242 </span><span class="Normal">case</span> _SYSTEM: <span class="Delimiter">{</span> <span id="L243" class="LineNr">243 </span> <span class="Normal">if</span> <span class="Delimiter">(</span><a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>inst<span class="Delimiter">.</span>ingredients<span class="Delimiter">)</span> != <span class="Constant">1</span><span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L244" class="LineNr">244 </span> <a href='003trace.cc.html#L197'>raise</a> &lt;&lt; <a href='013update_operation.cc.html#L25'>maybe</a><span class="Delimiter">(</span>get<span class="Delimiter">(</span>Recipe<span class="Delimiter">,</span> r<span class="Delimiter">).</span>name<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;'$system' requires exactly one ingredient, but got '&quot;</span> &lt;&lt; to_string<span class="Delimiter">(</span>inst<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;'</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> &lt;&lt; <a href='003trace.cc.html#L226'>end</a><span class="Delimiter">();</span> <span id="L245" class="LineNr">245 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L246" class="LineNr">246 </span> <span class="Delimiter">}</span> <span id="L247" class="LineNr">247 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>!is_literal_text<span class="Delimiter">(</span>inst<span class="Delimiter">.</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">)))</span> <span class="Delimiter">{</span> <span id="L248" class="LineNr">248 </span> <a href='003trace.cc.html#L197'>raise</a> &lt;&lt; <a href='013update_operation.cc.html#L25'>maybe</a><span class="Delimiter">(</span>get<span class="Delimiter">(</span>Recipe<span class="Delimiter">,</span> r<span class="Delimiter">).</span>name<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;ingredient to '$system' must be a literal text, but got '&quot;</span> &lt;&lt; to_string<span class="Delimiter">(</span>inst<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;'</span><span class="cSpecial">\n</span><span class="Constant">&quot;</span> &lt;&lt; <a href='003trace.cc.html#L226'>end</a><span class="Delimiter">();</span> <span id="L249" class="LineNr">249 </span> <span class="Delimiter">}</span> <span id="L250" class="LineNr">250 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L251" class="LineNr">251 </span><span class="Delimiter">}</span> <span id="L252" class="LineNr">252 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span> <span id="L253" class="LineNr">253 </span><span class="Normal">case</span> _SYSTEM: <span class="Delimiter">{</span> <span id="L254" class="LineNr">254 </span> <span class="Normal">int</span> status = system<span class="Delimiter">(</span><a href='026call.cc.html#L89'>current_instruction</a><span class="Delimiter">().</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>name<span class="Delimiter">.</span>c_str<span class="Delimiter">());</span> <span id="L255" class="LineNr">255 </span> products<span class="Delimiter">.</span>resize<span class="Delimiter">(</span><span class="Constant">1</span><span class="Delimiter">);</span> <span id="L256" class="LineNr">256 </span> products<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>push_back<span class="Delimiter">(</span>status<span class="Delimiter">);</span> <span id="L257" class="LineNr">257 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L258" class="LineNr">258 </span><span class="Delimiter">}</span> <span id="L259" class="LineNr">259 </span> <span id="L260" class="LineNr">260 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span> <span id="L261" class="LineNr">261 </span>_DUMP_MEMORY<span class="Delimiter">,</span> <span id="L262" class="LineNr">262 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span> <span id="L263" class="LineNr">263 </span><a href='001help.cc.html#L221'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;$dump-memory&quot;</span><span class="Delimiter">,</span> _DUMP_MEMORY<span class="Delimiter">);</span> <span id="L264" class="LineNr">264 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span> <span id="L265" class="LineNr">265 </span><span class="Normal">case</span> _DUMP_MEMORY: <span class="Delimiter">{</span> <span id="L266" class="LineNr">266 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L267" class="LineNr">267 </span><span class="Delimiter">}</span> <span id="L268" class="LineNr">268 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span> <span id="L269" class="LineNr">269 </span><span class="Normal">case</span> _DUMP_MEMORY: <span class="Delimiter">{</span> <span id="L270" class="LineNr">270 </span> dump_memory<span class="Delimiter">();</span> <span id="L271" class="LineNr">271 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L272" class="LineNr">272 </span><span class="Delimiter">}</span> <span id="L273" class="LineNr">273 </span> <span id="L274" class="LineNr">274 </span><span class="Comment">//: In times of real extremis we need to create a whole new modality for debug</span> <span id="L275" class="LineNr">275 </span><span class="Comment">//: logs, independent of other changes to the screen or Trace_stream.</span> <span id="L276" class="LineNr">276 </span> <span id="L277" class="LineNr">277 </span><span class="Delimiter">:(before &quot;End Globals&quot;)</span> <span id="L278" class="LineNr">278 </span>ofstream LOG<span class="Delimiter">;</span> <span id="L279" class="LineNr">279 </span><span class="Delimiter">:(before &quot;End One-time Setup&quot;)</span> <span id="L280" class="LineNr">280 </span><span class="CommentedCode">//? LOG.open(&quot;log&quot;);</span> <span id="L281" class="LineNr">281 </span> <span id="L282" class="LineNr">282 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span> <span id="L283" class="LineNr">283 </span>_LOG<span class="Delimiter">,</span> <span id="L284" class="LineNr">284 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span> <span id="L285" class="LineNr">285 </span><a href='001help.cc.html#L221'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;$log&quot;</span><span class="Delimiter">,</span> _LOG<span class="Delimiter">);</span> <span id="L286" class="LineNr">286 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span> <span id="L287" class="LineNr">287 </span><span class="Normal">case</span> _LOG: <span class="Delimiter">{</span> <span id="L288" class="LineNr">288 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L289" class="LineNr">289 </span><span class="Delimiter">}</span> <span id="L290" class="LineNr">290 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span> <span id="L291" class="LineNr">291 </span><span class="Normal">case</span> _LOG: <span class="Delimiter">{</span> <span id="L292" class="LineNr">292 </span> ostringstream out<span class="Delimiter">;</span> <span id="L293" class="LineNr">293 </span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> i = <span class="Constant">0</span><span class="Delimiter">;</span> i &lt; <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span><a href='026call.cc.html#L89'>current_instruction</a><span class="Delimiter">().</span>ingredients<span class="Delimiter">);</span> ++i<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L294" class="LineNr">294 </span> out &lt;&lt; inspect<span class="Delimiter">(</span><a href='026call.cc.html#L89'>current_instruction</a><span class="Delimiter">().</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">),</span> ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">));</span> <span id="L295" class="LineNr">295 </span> <span class="Delimiter">}</span> <span id="L296" class="LineNr">296 </span> LOG &lt;&lt; out<span class="Delimiter">.</span>str<span class="Delimiter">()</span> &lt;&lt; <span class="cSpecial">'\n'</span><span class="Delimiter">;</span> <span id="L297" class="LineNr">297 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L298" class="LineNr">298 </span><span class="Delimiter">}</span> <span id="L299" class="LineNr">299 </span> <span id="L300" class="LineNr">300 </span><span class="Comment">//: set a variable from within Mu code</span> <span id="L301" class="LineNr">301 </span><span class="Comment">//: useful for selectively tracing or printing after some point</span> <span id="L302" class="LineNr">302 </span><span class="Delimiter">:(before &quot;End Globals&quot;)</span> <span id="L303" class="LineNr">303 </span><span class="Normal">bool</span> Foo =<span class="Constant"> false</span><span class="Delimiter">;</span> <span id="L304" class="LineNr">304 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Declarations&quot;)</span> <span id="L305" class="LineNr">305 </span>_FOO<span class="Delimiter">,</span> <span id="L306" class="LineNr">306 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Numbers&quot;)</span> <span id="L307" class="LineNr">307 </span><a href='001help.cc.html#L221'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">&quot;$foo&quot;</span><span class="Delimiter">,</span> _FOO<span class="Delimiter">);</span> <span id="L308" class="LineNr">308 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Checks&quot;)</span> <span id="L309" class="LineNr">309 </span><span class="Normal">case</span> _FOO: <span class="Delimiter">{</span> <span id="L310" class="LineNr">310 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L311" class="LineNr">311 </span><span class="Delimiter">}</span> <span id="L312" class="LineNr">312 </span><span class="Delimiter">:(before &quot;End Primitive Recipe Implementations&quot;)</span> <span id="L313" class="LineNr">313 </span><span class="Normal">case</span> _FOO: <span class="Delimiter">{</span> <span id="L314" class="LineNr">314 </span> Foo =<span class="Constant"> true</span><span class="Delimiter">;</span> <span id="L315" class="LineNr">315 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L316" class="LineNr">316 </span><span class="Delimiter">}</span> </pre> </body> </html> <!-- vim: set foldmethod=manual : -->