summary refs log tree commit diff stats
path: root/doc/pydoc/ranger.gui.widgets.console_mode.html
blob: 155fe07d3db8dfbe8a61e429cc157152f51c9f0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module ranger.gui.widgets.console_mode</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.<a href="ranger.gui.widgets.html"><font color="#ffffff">widgets</font></a>.console_mode</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/widgets/console_mode.py">/home/hut/ranger/ranger/gui/widgets/console_mode.py</a></font></td></tr></table>
    <p><tt>#&nbsp;Copyright&nbsp;(C)&nbsp;2009,&nbsp;2010&nbsp;&nbsp;Roman&nbsp;Zimbelmann&nbsp;&lt;romanz@lavabit.com&gt;<br>
#<br>
#&nbsp;This&nbsp;program&nbsp;is&nbsp;free&nbsp;software:&nbsp;you&nbsp;can&nbsp;redistribute&nbsp;it&nbsp;and/or&nbsp;modify<br>
#&nbsp;it&nbsp;under&nbsp;the&nbsp;terms&nbsp;of&nbsp;the&nbsp;GNU&nbsp;General&nbsp;Public&nbsp;License&nbsp;as&nbsp;published&nbsp;by<br>
#&nbsp;the&nbsp;Free&nbsp;Software&nbsp;Foundation,&nbsp;either&nbsp;version&nbsp;3&nbsp;of&nbsp;the&nbsp;License,&nbsp;or<br>
#&nbsp;(at&nbsp;your&nbsp;option)&nbsp;any&nbsp;later&nbsp;version.<br>
#<br>
#&nbsp;This&nbsp;program&nbsp;is&nbsp;distributed&nbsp;in&nbsp;the&nbsp;hope&nbsp;that&nbsp;it&nbsp;will&nbsp;be&nbsp;useful,<br>
#&nbsp;but&nbsp;WITHOUT&nbsp;ANY&nbsp;WARRANTY;&nbsp;without&nbsp;even&nbsp;the&nbsp;implied&nbsp;warranty&nbsp;of<br>
#&nbsp;MERCHANTABILITY&nbsp;or&nbsp;FITNESS&nbsp;FOR&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE.&nbsp;&nbsp;See&nbsp;the<br>
#&nbsp;GNU&nbsp;General&nbsp;Public&nbsp;License&nbsp;for&nbsp;more&nbsp;details.<br>
#<br>
#&nbsp;You&nbsp;should&nbsp;have&nbsp;received&nbsp;a&nbsp;copy&nbsp;of&nbsp;the&nbsp;GNU&nbsp;General&nbsp;Public&nbsp;License<br>
#&nbsp;along&nbsp;with&nbsp;this&nbsp;program.&nbsp;&nbsp;If&nbsp;not,&nbsp;see&nbsp;&lt;<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-all_modes"><strong>all_modes</strong></a>(mode)</dt><dd><tt>Returns&nbsp;a&nbsp;generator&nbsp;containing&nbsp;all&nbsp;valid&nbsp;modes.</tt></dd></dl>
 <dl><dt><a name="-is_valid_mode"><strong>is_valid_mode</strong></a>(mode)</dt><dd><tt>Returns&nbsp;True&nbsp;or&nbsp;False&nbsp;depending&nbsp;on&nbsp;whether&nbsp;the&nbsp;mode&nbsp;is&nbsp;valid&nbsp;or&nbsp;not.</tt></dd></dl>
 <dl><dt><a name="-mode_to_class"><strong>mode_to_class</strong></a>(mode)</dt><dd><tt>Associates&nbsp;modes&nbsp;with&nbsp;the&nbsp;actual&nbsp;classes<br>
from&nbsp;ranger.gui.widgets.console.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>COMMAND</strong> = 1<br>
<strong>COMMAND_QUICK</strong> = 2<br>
<strong>DEFAULT</strong> = 0<br>
<strong>OPEN</strong> = 3<br>
<strong>OPEN_QUICK</strong> = 4<br>
<strong>SEARCH</strong> = 5</td></tr></table>
</body></html>
class="subxComment"># subtract from esp</span> <span id="L16" class="LineNr">16 </span> <span id="L17" class="LineNr">17 </span> <span class="subxComment"># read(stdin, x, 1)</span> <span id="L18" class="LineNr">18 </span> <span class="subxS1Comment"># . fd = 0 (stdin)</span> <span id="L19" class="LineNr">19 </span> bb/copy-to-ebx 0/imm32 <span id="L20" class="LineNr">20 </span> <span class="subxS1Comment"># . data = x (location to write result to)</span> <span id="L21" class="LineNr">21 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none 1/r32/ecx 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy esp+4 to ecx</span> <span id="L22" class="LineNr">22 </span> <span class="subxS1Comment"># . size = 1 character</span> <span id="L23" class="LineNr">23 </span> ba/copy-to-edx 1/imm32 <span id="L24" class="LineNr">24 </span> <span class="subxS1Comment"># . syscall</span> <span id="L25" class="LineNr">25 </span> e8/call <a href='000init.subx.html#L23'>syscall_read</a>/disp32 <span id="L26" class="LineNr">26 </span> <span id="L27" class="LineNr">27 </span> <span class="subxComment"># syscall(write, stdout, x, 1)</span> <span id="L28" class="LineNr">28 </span> <span class="subxS1Comment"># . fd = 1 (stdout)</span> <span id="L29" class="LineNr">29 </span> bb/copy-to-ebx 1/imm32 <span id="L30" class="LineNr">30 </span> <span class="subxS1Comment"># . data = x (location to read from)</span> <span id="L31" class="LineNr">31 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none 1/r32/ecx 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy esp+4 to ecx</span> <span id="L32" class="LineNr">32 </span> <span class="subxS1Comment"># . size = 1 character</span> <span id="L33" class="LineNr">33 </span> ba/copy-to-edx 1/imm32 <span id="L34" class="LineNr">34 </span> <span class="subxS1Comment"># . syscall</span> <span id="L35" class="LineNr">35 </span> e8/call <a href='000init.subx.html#L29'>syscall_write</a>/disp32 <span id="L36" class="LineNr">36 </span> <span id="L37" class="LineNr">37 </span> <span class="subxComment"># exit(ebx)</span> <span id="L38" class="LineNr">38 </span> e8/call <a href='000init.subx.html#L18'>syscall_exit</a>/disp32 <span id="L39" class="LineNr">39 </span> <span id="L40" class="LineNr">40 </span><span class="subxS2Comment"># . . vim&#0058;nowrap:textwidth=0</span> </pre> </body> </html> <!-- vim: set foldmethod=manual : -->