# Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import _curses
from ranger.core.shared import FileManagerAware, EnvironmentAware
from ranger.gui.curses_shortcuts import CursesShortcuts
class Displayable(EnvironmentAware, FileManagerAware, CursesShortcuts):
"""
Displayables are objects which are displayed on the screen.
This is just the abstract class, defining basic operations
such as resizing, printing, changing colors.
Subclasses of displayable can extend these methods:
draw() -- draw the object. Is only called if visible.
poke() -- is called just before draw(), even if not visible.
finalize() -- called after all objects finished drawing.
click(event) -- called with a MouseEvent. This is called on all
visible objects under the mouse, until one returns True.
press(key) -- called after a key press on focused objects.
destroy() -- called before destroying the displayable object
Additionally, there are these methods:
__contains__(item) -- is the item (y, x) inside the widget?
These attributes are set:
Modifiable:
focused -- Focused objects receive press() calls.
visible -- Visible objects receive draw() and finalize() calls
need_redraw -- Should the widget be redrawn? This variable may
be set at various places in the script and should eventually be
handled (and unset) in the draw() method.
Read-Only: (i.e. reccomended not to change manually)
win -- the own curses window object
parent -- the parent (DisplayableContainer) object or None
x, y, wid, hei -- absolute coordinates and boundaries
settings, fm, env -- inherited shared variables
"""
def __init__(self, win, env=None, fm=None, settings=None):
from ranger.gui.ui import UI
if env is not None:
self.env = env
if fm is not None:
self.fm = fm
if settings is not None:
self.settings = settings
self.need_redraw = True
self.focused = False
self.visible = True
self.x = 0
self.y = 0
self.wid = 0
self.hei = 0
self.paryx = (0, 0)
self.parent = None
self._old_visible = self.visible
if win is not None:
if isinstance(self, UI):
self.win = win
else:
self.win = win.derwin(1, 1, 0, 0)
def __nonzero__(self):
"""Always True"""
return True
__bool__ = __nonzero__
def __contains__(self, item):
"""
Is item inside the boundaries?
item can be an iterable like [y, x] or an object with x and y methods.
"""
try:
y, x = item.y, item.x
except AttributeError:
try:
y, x = item
except (ValueError, TypeError):
return False
return self.contains_point(y, x)
def draw(self):
"""
Draw the object. Called on every main iteration if visible.
Containers should call draw() on their contained objects here.
Override this!
"""
def destroy(self):
"""
Called when the object is destroyed.
Override this!
"""
def contains_point(self, y, x):
"""
Test whether the point (with absolute coordinates) lies
within the boundaries of this object.
"""
return (x >= self.x and x < self.x + self.wid) and \
(y >= self.y and y < self.y + self.hei)
def click(self, event):
"""
Called when a mouse key is pressed and self.focused is True.
Override this!
"""
pass
def press(self, key):
"""
Called when a key is pressed and self.focused is True.
Override this!
"""
pass
def poke(self):
"""Called before drawing, even if invisible"""
if self._old_visible != self.visible:
self._old_visible = self.visible
self.need_redraw = True
if not self.visible:
self.win.erase()
def finalize(self):
"""
Called after every displayable is done drawing.
Override this!
"""
pass
def resize(self, y, x, hei=None, wid=None):
"""Resize the widget"""
do_move = True
try:
maxy, maxx = self.env.termsize
except TypeError:
pass
else:
if hei is None:
hei = maxy - y
if wid is None:
wid = maxx - x
if x < 0 or y < 0:
raise ValueError("Starting point below zero!")
#if wid < 1 or hei < 1:
# raise OutOfBoundsException("WID and HEI must be >=1!")
if x + wid > maxx and y + hei > maxy:
raise ValueError("X and Y out of bounds!")
if x + wid > maxx:
raise ValueError("X out of bounds!")
if y + hei > maxy:
raise ValueError("Y out of bounds!")
window_is_cleared = False
if hei != self.hei or wid != self.wid:
#log("resizing " + str(self))
self.win.erase()
self.need_redraw = True
window_is_cleared = True
try:
self.win.resize(hei, wid)
except:
# Not enough space for resizing...
try:
self.win.mvderwin(0, 0)
do_move = True
self.win.resize(hei, wid)
except:
pass
#raise ValueError("Resizing Failed!")
self.hei, self.wid = self.win.getmaxyx()
if do_move or y != self.paryx[0] or x != self.paryx[1]:
if not window_is_cleared:
self.pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008800 } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #336699 } /* Name.Attribute */
.highlight .nb { color: #003388 } /* Name.Builtin */
.highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555 } /* Name.Decorator */
.highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */
.highlight .nl { color: #336699; font-style: italic } /* Name.Label */
.highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
.highlight .py { color: #336699; font-weight: bold } /* Name.Property */
.highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #336699 } /* Name.Variable */
.highlight .ow { color: #008800 } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */
.highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
.highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
.highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */
.highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
.highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
.highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
.highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
.highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
.highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
.highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
.highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */
.highlight .vm { color: #336699 } /* Name.Variable.Magic */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module ranger.gui.widgets.console</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <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</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/work/ranger/ranger/gui/widgets/console.py">/home/hut/work/ranger/ranger/gui/widgets/console.py</a></font></td></tr></table>
<p><tt>The <a href="#Console">Console</a> widget implements a vim-like console for entering<br>
commands, searching and executing files.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="ranger.commands.html">ranger.commands</a><br>
</td><td width="25%" valign=top><a href="curses.html">curses</a><br>
</td><td width="25%" valign=top><a href="string.html">string</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="ranger.gui.widgets.html#Widget">ranger.gui.widgets.Widget</a>(<a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="ranger.gui.widgets.console.html#Console">Console</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="ranger.gui.widgets.console.html#ConsoleWithTab">ConsoleWithTab</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="ranger.gui.widgets.console.html#CommandConsole">CommandConsole</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="ranger.gui.widgets.console.html#QuickCommandConsole">QuickCommandConsole</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="ranger.gui.widgets.console.html#OpenConsole">OpenConsole</a>
</font></dt><dt><font face="helvetica, arial"><a href="ranger.gui.widgets.console.html#QuickOpenConsole">QuickOpenConsole</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="ranger.gui.widgets.console.html#SearchConsole">SearchConsole</a>
</font></dt></dl>
</dd>
</dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="CommandConsole">class <strong>CommandConsole</strong></a>(<a href="ranger.gui.widgets.console.html#ConsoleWithTab">ConsoleWithTab</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="ranger.gui.widgets.console.html#CommandConsole">CommandConsole</a></dd>
<dd><a href="ranger.gui.widgets.console.html#ConsoleWithTab">ConsoleWithTab</a></dd>
<dd><a href="ranger.gui.widgets.console.html#Console">Console</a></dd>
<dd><a href="ranger.gui.widgets.html#Widget">ranger.gui.widgets.Widget</a></dd>
<dd><a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a></dd>
<dd><a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a></dd>
<dd><a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a></dd>
<dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd>
<dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd>
<dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="CommandConsole-execute"><strong>execute</strong></a>(self, cmd<font color="#909090">=None</font>)</dt></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>prompt</strong> = ':'</dl>
<hr>
Methods inherited from <a href="ranger.gui.widgets.console.html#ConsoleWithTab">ConsoleWithTab</a>:<br>
<dl><dt><a name="CommandConsole-tab"><strong>tab</strong></a>(self, n<font color="#909090">=1</font>)</dt></dl>
<hr>
Methods inherited from <a href="ranger.gui.widgets.console.html#Console">Console</a>:<br>
<dl><dt><a name="CommandConsole-__init__"><strong>__init__</strong></a>(self, win)</dt></dl>
<dl><dt><a name="CommandConsole-add_to_history"><strong>add_to_history</strong></a>(self)</dt></dl>
<dl><dt><a name="CommandConsole-clear"><strong>clear</strong></a>(self)</dt></dl>
<dl><dt><a name="CommandConsole-close"><strong>close</strong></a>(self)</dt></dl>
<dl><dt><a name="CommandConsole-delete"><strong>delete</strong></a>(self, mod)</dt></dl>
<dl><dt><a name="CommandConsole-delete_rest"><strong>delete_rest</strong></a>(self, direction)</dt></dl>
<dl><dt><a name="CommandConsole-delete_word"><strong>delete_word</strong></a>(self)</dt></dl>
<dl><dt><a name="CommandConsole-draw"><strong>draw</strong></a>(self)</dt></dl>
<dl><dt><a name="CommandConsole-finalize"><strong>finalize</strong></a>(self)</dt></dl>
<dl><dt><a name="CommandConsole-history_move"><strong>history_move</strong></a>(self, n)</dt></dl>
<dl><dt><a name="CommandConsole-init"><strong>init</strong></a>(self)</dt><dd><tt>override this. Called directly after class change</tt></dd></dl>
<dl><dt><a name="CommandConsole-move"><strong>move</strong></a>(self, relative<font color="#909090">=0</font>, absolute<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="CommandConsole-on_line_change"><strong>on_line_change</strong></a>(self)</dt></dl>
<dl><dt><a name="CommandConsole-open"><strong>open</strong></a>(self, mode, string<font color="#909090">=''</font>)</dt></dl>
<dl><dt><a name="CommandConsole-paste"><strong>paste</strong></a>(self)</dt></dl>
<dl><dt><a name="CommandConsole-press"><strong>press</strong></a>(self, key)</dt></dl>
<dl><dt><a name="CommandConsole-type_key"><strong>type_key</strong></a>(self, key)</dt></dl>
<hr>
Data and other attributes inherited from <a href="ranger.gui.widgets.console.html#Console">Console</a>:<br>
<dl><dt><strong>commandlist</strong> = None</dl>
<dl><dt><strong>copy</strong> = ''</dl>
<dl><dt><strong>histories</strong> = None</dl>
<dl><dt><strong>history</strong> = None</dl>
<dl><dt><strong>last_cursor_mode</strong> = 1</dl>
<dl><dt><strong>mode</strong> = None</dl>
<dl><dt><strong>original_line</strong> = None</dl>
<dl><dt><strong>override</strong> = None</dl>
<dl><dt><strong>tab_deque</strong> = None</dl>
<dl><dt><strong>visible</strong> = False</dl>
<hr>
Methods inherited from <a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a>:<br>
<dl><dt><a name="CommandConsole-__contains__"><strong>__contains__</strong></a>(self, item)</dt><dd><tt>Is item inside the boundaries?<br>
item can be an iterable like [y, x] or an object with x and y methods.</tt></dd></dl>
<dl><dt><a name="CommandConsole-__nonzero__"><strong>__nonzero__</strong></a>(self)</dt><dd><tt>Always True</tt></dd></dl>
<dl><dt><a name="CommandConsole-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<dl><dt><a name="CommandConsole-click"><strong>click</strong></a>(self, event)</dt><dd><tt>Called when a mouse key is pressed and self.<strong>focused</strong> is True.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="CommandConsole-contains_point"><strong>contains_point</strong></a>(self, y, x)</dt><dd><tt>Test whether the point (with absolute coordinates) lies<br>
within the boundaries of this object.</tt></dd></dl>
<dl><dt><a name="CommandConsole-destroy"><strong>destroy</strong></a>(self)</dt><dd><tt>Called when the object is destroyed.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="CommandConsole-poke"><strong>poke</strong></a>(self)</dt><dd><tt>Called before drawing, even if invisible</tt></dd></dl>
<dl><dt><a name="CommandConsole-resize"><strong>resize</strong></a>(self, y, x, hei<font color="#909090">=None</font>, wid<font color="#909090">=None</font>)</dt><dd><tt>Resize the widget</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a>:<br>
<dl><dt><strong>env</strong> = None</dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a>:<br>
<dl><dt><strong>fm</strong> = None</dl>
<hr>
Data descriptors inherited from <a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Methods inherited from <a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a>:<br>
<dl><dt><a name="CommandConsole-addnstr"><strong>addnstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="CommandConsole-addstr"><strong>addstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="CommandConsole-color"><strong>color</strong></a>(self, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors from now on.</tt></dd></dl>
<dl><dt><a name="CommandConsole-color_at"><strong>color_at</strong></a>(self, y, x, wid, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors at the specified position</tt></dd></dl>
<dl><dt><a name="CommandConsole-color_reset"><strong>color_reset</strong></a>(self)</dt><dd><tt>Change the colors to the default colors</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>:<br>
<dl><dt><strong>settings</strong> = <ranger.ext.openstruct.OpenStruct object at 0x7f28d0aa5bd0></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Console">class <strong>Console</strong></a>(<a href="ranger.gui.widgets.html#Widget">ranger.gui.widgets.Widget</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="ranger.gui.widgets.console.html#Console">Console</a></dd>
<dd><a href="ranger.gui.widgets.html#Widget">ranger.gui.widgets.Widget</a></dd>
<dd><a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a></dd>
<dd><a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a></dd>
<dd><a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a></dd>
<dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd>
<dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd>
<dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="Console-__init__"><strong>__init__</strong></a>(self, win)</dt></dl>
<dl><dt><a name="Console-add_to_history"><strong>add_to_history</strong></a>(self)</dt></dl>
<dl><dt><a name="Console-clear"><strong>clear</strong></a>(self)</dt></dl>
<dl><dt><a name="Console-close"><strong>close</strong></a>(self)</dt></dl>
<dl><dt><a name="Console-delete"><strong>delete</strong></a>(self, mod)</dt></dl>
<dl><dt><a name="Console-delete_rest"><strong>delete_rest</strong></a>(self, direction)</dt></dl>
<dl><dt><a name="Console-delete_word"><strong>delete_word</strong></a>(self)</dt></dl>
<dl><dt><a name="Console-draw"><strong>draw</strong></a>(self)</dt></dl>
<dl><dt><a name="Console-execute"><strong>execute</strong></a>(self)</dt></dl>
<dl><dt><a name="Console-finalize"><strong>finalize</strong></a>(self)</dt></dl>
<dl><dt><a name="Console-history_move"><strong>history_move</strong></a>(self, n)</dt></dl>
<dl><dt><a name="Console-init"><strong>init</strong></a>(self)</dt><dd><tt>override this. Called directly after class change</tt></dd></dl>
<dl><dt><a name="Console-move"><strong>move</strong></a>(self, relative<font color="#909090">=0</font>, absolute<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="Console-on_line_change"><strong>on_line_change</strong></a>(self)</dt></dl>
<dl><dt><a name="Console-open"><strong>open</strong></a>(self, mode, string<font color="#909090">=''</font>)</dt></dl>
<dl><dt><a name="Console-paste"><strong>paste</strong></a>(self)</dt></dl>
<dl><dt><a name="Console-press"><strong>press</strong></a>(self, key)</dt></dl>
<dl><dt><a name="Console-tab"><strong>tab</strong></a>(self)</dt></dl>
<dl><dt><a name="Console-type_key"><strong>type_key</strong></a>(self, key)</dt></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>commandlist</strong> = None</dl>
<dl><dt><strong>copy</strong> = ''</dl>
<dl><dt><strong>histories</strong> = None</dl>
<dl><dt><strong>history</strong> = None</dl>
<dl><dt><strong>last_cursor_mode</strong> = 1</dl>
<dl><dt><strong>mode</strong> = None</dl>
<dl><dt><strong>original_line</strong> = None</dl>
<dl><dt><strong>override</strong> = None</dl>
<dl><dt><strong>prompt</strong> = ':'</dl>
<dl><dt><strong>tab_deque</strong> = None</dl>
<dl><dt><strong>visible</strong> = False</dl>
<hr>
Methods inherited from <a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a>:<br>
<dl><dt><a name="Console-__contains__"><strong>__contains__</strong></a>(self, item)</dt><dd><tt>Is item inside the boundaries?<br>
item can be an iterable like [y, x] or an object with x and y methods.</tt></dd></dl>
<dl><dt><a name="Console-__nonzero__"><strong>__nonzero__</strong></a>(self)</dt><dd><tt>Always True</tt></dd></dl>
<dl><dt><a name="Console-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<dl><dt><a name="Console-click"><strong>click</strong></a>(self, event)</dt><dd><tt>Called when a mouse key is pressed and self.<strong>focused</strong> is True.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="Console-contains_point"><strong>contains_point</strong></a>(self, y, x)</dt><dd><tt>Test whether the point (with absolute coordinates) lies<br>
within the boundaries of this object.</tt></dd></dl>
<dl><dt><a name="Console-destroy"><strong>destroy</strong></a>(self)</dt><dd><tt>Called when the object is destroyed.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="Console-poke"><strong>poke</strong></a>(self)</dt><dd><tt>Called before drawing, even if invisible</tt></dd></dl>
<dl><dt><a name="Console-resize"><strong>resize</strong></a>(self, y, x, hei<font color="#909090">=None</font>, wid<font color="#909090">=None</font>)</dt><dd><tt>Resize the widget</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a>:<br>
<dl><dt><strong>env</strong> = None</dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a>:<br>
<dl><dt><strong>fm</strong> = None</dl>
<hr>
Data descriptors inherited from <a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Methods inherited from <a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a>:<br>
<dl><dt><a name="Console-addnstr"><strong>addnstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="Console-addstr"><strong>addstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="Console-color"><strong>color</strong></a>(self, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors from now on.</tt></dd></dl>
<dl><dt><a name="Console-color_at"><strong>color_at</strong></a>(self, y, x, wid, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors at the specified position</tt></dd></dl>
<dl><dt><a name="Console-color_reset"><strong>color_reset</strong></a>(self)</dt><dd><tt>Change the colors to the default colors</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>:<br>
<dl><dt><strong>settings</strong> = <ranger.ext.openstruct.OpenStruct object at 0x7f28d0aa5bd0></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="ConsoleWithTab">class <strong>ConsoleWithTab</strong></a>(<a href="ranger.gui.widgets.console.html#Console">Console</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="ranger.gui.widgets.console.html#ConsoleWithTab">ConsoleWithTab</a></dd>
<dd><a href="ranger.gui.widgets.console.html#Console">Console</a></dd>
<dd><a href="ranger.gui.widgets.html#Widget">ranger.gui.widgets.Widget</a></dd>
<dd><a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a></dd>
<dd><a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a></dd>
<dd><a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a></dd>
<dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd>
<dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd>
<dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="ConsoleWithTab-tab"><strong>tab</strong></a>(self, n<font color="#909090">=1</font>)</dt></dl>
<hr>
Methods inherited from <a href="ranger.gui.widgets.console.html#Console">Console</a>:<br>
<dl><dt><a name="ConsoleWithTab-__init__"><strong>__init__</strong></a>(self, win)</dt></dl>
<dl><dt><a name="ConsoleWithTab-add_to_history"><strong>add_to_history</strong></a>(self)</dt></dl>
<dl><dt><a name="ConsoleWithTab-clear"><strong>clear</strong></a>(self)</dt></dl>
<dl><dt><a name="ConsoleWithTab-close"><strong>close</strong></a>(self)</dt></dl>
<dl><dt><a name="ConsoleWithTab-delete"><strong>delete</strong></a>(self, mod)</dt></dl>
<dl><dt><a name="ConsoleWithTab-delete_rest"><strong>delete_rest</strong></a>(self, direction)</dt></dl>
<dl><dt><a name="ConsoleWithTab-delete_word"><strong>delete_word</strong></a>(self)</dt></dl>
<dl><dt><a name="ConsoleWithTab-draw"><strong>draw</strong></a>(self)</dt></dl>
<dl><dt><a name="ConsoleWithTab-execute"><strong>execute</strong></a>(self)</dt></dl>
<dl><dt><a name="ConsoleWithTab-finalize"><strong>finalize</strong></a>(self)</dt></dl>
<dl><dt><a name="ConsoleWithTab-history_move"><strong>history_move</strong></a>(self, n)</dt></dl>
<dl><dt><a name="ConsoleWithTab-init"><strong>init</strong></a>(self)</dt><dd><tt>override this. Called directly after class change</tt></dd></dl>
<dl><dt><a name="ConsoleWithTab-move"><strong>move</strong></a>(self, relative<font color="#909090">=0</font>, absolute<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="ConsoleWithTab-on_line_change"><strong>on_line_change</strong></a>(self)</dt></dl>
<dl><dt><a name="ConsoleWithTab-open"><strong>open</strong></a>(self, mode, string<font color="#909090">=''</font>)</dt></dl>
<dl><dt><a name="ConsoleWithTab-paste"><strong>paste</strong></a>(self)</dt></dl>
<dl><dt><a name="ConsoleWithTab-press"><strong>press</strong></a>(self, key)</dt></dl>
<dl><dt><a name="ConsoleWithTab-type_key"><strong>type_key</strong></a>(self, key)</dt></dl>
<hr>
Data and other attributes inherited from <a href="ranger.gui.widgets.console.html#Console">Console</a>:<br>
<dl><dt><strong>commandlist</strong> = None</dl>
<dl><dt><strong>copy</strong> = ''</dl>
<dl><dt><strong>histories</strong> = None</dl>
<dl><dt><strong>history</strong> = None</dl>
<dl><dt><strong>last_cursor_mode</strong> = 1</dl>
<dl><dt><strong>mode</strong> = None</dl>
<dl><dt><strong>original_line</strong> = None</dl>
<dl><dt><strong>override</strong> = None</dl>
<dl><dt><strong>prompt</strong> = ':'</dl>
<dl><dt><strong>tab_deque</strong> = None</dl>
<dl><dt><strong>visible</strong> = False</dl>
<hr>
Methods inherited from <a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a>:<br>
<dl><dt><a name="ConsoleWithTab-__contains__"><strong>__contains__</strong></a>(self, item)</dt><dd><tt>Is item inside the boundaries?<br>
item can be an iterable like [y, x] or an object with x and y methods.</tt></dd></dl>
<dl><dt><a name="ConsoleWithTab-__nonzero__"><strong>__nonzero__</strong></a>(self)</dt><dd><tt>Always True</tt></dd></dl>
<dl><dt><a name="ConsoleWithTab-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<dl><dt><a name="ConsoleWithTab-click"><strong>click</strong></a>(self, event)</dt><dd><tt>Called when a mouse key is pressed and self.<strong>focused</strong> is True.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="ConsoleWithTab-contains_point"><strong>contains_point</strong></a>(self, y, x)</dt><dd><tt>Test whether the point (with absolute coordinates) lies<br>
within the boundaries of this object.</tt></dd></dl>
<dl><dt><a name="ConsoleWithTab-destroy"><strong>destroy</strong></a>(self)</dt><dd><tt>Called when the object is destroyed.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="ConsoleWithTab-poke"><strong>poke</strong></a>(self)</dt><dd><tt>Called before drawing, even if invisible</tt></dd></dl>
<dl><dt><a name="ConsoleWithTab-resize"><strong>resize</strong></a>(self, y, x, hei<font color="#909090">=None</font>, wid<font color="#909090">=None</font>)</dt><dd><tt>Resize the widget</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a>:<br>
<dl><dt><strong>env</strong> = None</dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a>:<br>
<dl><dt><strong>fm</strong> = None</dl>
<hr>
Data descriptors inherited from <a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Methods inherited from <a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a>:<br>
<dl><dt><a name="ConsoleWithTab-addnstr"><strong>addnstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="ConsoleWithTab-addstr"><strong>addstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="ConsoleWithTab-color"><strong>color</strong></a>(self, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors from now on.</tt></dd></dl>
<dl><dt><a name="ConsoleWithTab-color_at"><strong>color_at</strong></a>(self, y, x, wid, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors at the specified position</tt></dd></dl>
<dl><dt><a name="ConsoleWithTab-color_reset"><strong>color_reset</strong></a>(self)</dt><dd><tt>Change the colors to the default colors</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>:<br>
<dl><dt><strong>settings</strong> = <ranger.ext.openstruct.OpenStruct object at 0x7f28d0aa5bd0></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="OpenConsole">class <strong>OpenConsole</strong></a>(<a href="ranger.gui.widgets.console.html#ConsoleWithTab">ConsoleWithTab</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>The <a href="#OpenConsole">OpenConsole</a> allows you to execute shell commands:<br>
!vim * will run vim and open all files in the directory.<br>
<br>
%f will be replaced with the basename of the highlighted file<br>
%s will be selected with all files in the selection<br>
<br>
There is a special syntax for more control:<br>
<br>
!d! mplayer will run mplayer with flags (d means detached)<br>
!@ mplayer will open the selected files with mplayer<br>
(equivalent to !mplayer %s)<br>
<br>
those two can be combinated:<br>
<br>
!d!@mplayer will open the selection with a detached mplayer<br>
<br>
For a list of other flags than "d", look at the documentation<br>
of ranger.applications.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="ranger.gui.widgets.console.html#OpenConsole">OpenConsole</a></dd>
<dd><a href="ranger.gui.widgets.console.html#ConsoleWithTab">ConsoleWithTab</a></dd>
<dd><a href="ranger.gui.widgets.console.html#Console">Console</a></dd>
<dd><a href="ranger.gui.widgets.html#Widget">ranger.gui.widgets.Widget</a></dd>
<dd><a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a></dd>
<dd><a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a></dd>
<dd><a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a></dd>
<dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd>
<dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd>
<dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="OpenConsole-execute"><strong>execute</strong></a>(self)</dt></dl>
<dl><dt><a name="OpenConsole-init"><strong>init</strong></a>(self)</dt></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>prompt</strong> = '!'</dl>
<hr>
Methods inherited from <a href="ranger.gui.widgets.console.html#ConsoleWithTab">ConsoleWithTab</a>:<br>
<dl><dt><a name="OpenConsole-tab"><strong>tab</strong></a>(self, n<font color="#909090">=1</font>)</dt></dl>
<hr>
Methods inherited from <a href="ranger.gui.widgets.console.html#Console">Console</a>:<br>
<dl><dt><a name="OpenConsole-__init__"><strong>__init__</strong></a>(self, win)</dt></dl>
<dl><dt><a name="OpenConsole-add_to_history"><strong>add_to_history</strong></a>(self)</dt></dl>
<dl><dt><a name="OpenConsole-clear"><strong>clear</strong></a>(self)</dt></dl>
<dl><dt><a name="OpenConsole-close"><strong>close</strong></a>(self)</dt></dl>
<dl><dt><a name="OpenConsole-delete"><strong>delete</strong></a>(self, mod)</dt></dl>
<dl><dt><a name="OpenConsole-delete_rest"><strong>delete_rest</strong></a>(self, direction)</dt></dl>
<dl><dt><a name="OpenConsole-delete_word"><strong>delete_word</strong></a>(self)</dt></dl>
<dl><dt><a name="OpenConsole-draw"><strong>draw</strong></a>(self)</dt></dl>
<dl><dt><a name="OpenConsole-finalize"><strong>finalize</strong></a>(self)</dt></dl>
<dl><dt><a name="OpenConsole-history_move"><strong>history_move</strong></a>(self, n)</dt></dl>
<dl><dt><a name="OpenConsole-move"><strong>move</strong></a>(self, relative<font color="#909090">=0</font>, absolute<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="OpenConsole-on_line_change"><strong>on_line_change</strong></a>(self)</dt></dl>
<dl><dt><a name="OpenConsole-open"><strong>open</strong></a>(self, mode, string<font color="#909090">=''</font>)</dt></dl>
<dl><dt><a name="OpenConsole-paste"><strong>paste</strong></a>(self)</dt></dl>
<dl><dt><a name="OpenConsole-press"><strong>press</strong></a>(self, key)</dt></dl>
<dl><dt><a name="OpenConsole-type_key"><strong>type_key</strong></a>(self, key)</dt></dl>
<hr>
Data and other attributes inherited from <a href="ranger.gui.widgets.console.html#Console">Console</a>:<br>
<dl><dt><strong>commandlist</strong> = None</dl>
<dl><dt><strong>copy</strong> = ''</dl>
<dl><dt><strong>histories</strong> = None</dl>
<dl><dt><strong>history</strong> = None</dl>
<dl><dt><strong>last_cursor_mode</strong> = 1</dl>
<dl><dt><strong>mode</strong> = None</dl>
<dl><dt><strong>original_line</strong> = None</dl>
<dl><dt><strong>override</strong> = None</dl>
<dl><dt><strong>tab_deque</strong> = None</dl>
<dl><dt><strong>visible</strong> = False</dl>
<hr>
Methods inherited from <a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a>:<br>
<dl><dt><a name="OpenConsole-__contains__"><strong>__contains__</strong></a>(self, item)</dt><dd><tt>Is item inside the boundaries?<br>
item can be an iterable like [y, x] or an object with x and y methods.</tt></dd></dl>
<dl><dt><a name="OpenConsole-__nonzero__"><strong>__nonzero__</strong></a>(self)</dt><dd><tt>Always True</tt></dd></dl>
<dl><dt><a name="OpenConsole-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<dl><dt><a name="OpenConsole-click"><strong>click</strong></a>(self, event)</dt><dd><tt>Called when a mouse key is pressed and self.<strong>focused</strong> is True.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="OpenConsole-contains_point"><strong>contains_point</strong></a>(self, y, x)</dt><dd><tt>Test whether the point (with absolute coordinates) lies<br>
within the boundaries of this object.</tt></dd></dl>
<dl><dt><a name="OpenConsole-destroy"><strong>destroy</strong></a>(self)</dt><dd><tt>Called when the object is destroyed.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="OpenConsole-poke"><strong>poke</strong></a>(self)</dt><dd><tt>Called before drawing, even if invisible</tt></dd></dl>
<dl><dt><a name="OpenConsole-resize"><strong>resize</strong></a>(self, y, x, hei<font color="#909090">=None</font>, wid<font color="#909090">=None</font>)</dt><dd><tt>Resize the widget</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a>:<br>
<dl><dt><strong>env</strong> = None</dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a>:<br>
<dl><dt><strong>fm</strong> = None</dl>
<hr>
Data descriptors inherited from <a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Methods inherited from <a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a>:<br>
<dl><dt><a name="OpenConsole-addnstr"><strong>addnstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="OpenConsole-addstr"><strong>addstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="OpenConsole-color"><strong>color</strong></a>(self, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors from now on.</tt></dd></dl>
<dl><dt><a name="OpenConsole-color_at"><strong>color_at</strong></a>(self, y, x, wid, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors at the specified position</tt></dd></dl>
<dl><dt><a name="OpenConsole-color_reset"><strong>color_reset</strong></a>(self)</dt><dd><tt>Change the colors to the default colors</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>:<br>
<dl><dt><strong>settings</strong> = <ranger.ext.openstruct.OpenStruct object at 0x7f28d0aa5bd0></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="QuickCommandConsole">class <strong>QuickCommandConsole</strong></a>(<a href="ranger.gui.widgets.console.html#CommandConsole">CommandConsole</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>The <a href="#QuickCommandConsole">QuickCommandConsole</a> is essentially the same as the<br>
<a href="#CommandConsole">CommandConsole</a>, and includes one additional feature:<br>
After each letter you type, it checks whether the command as it<br>
stands there could be executed in a meaningful way, and if it does,<br>
run it right away.<br>
<br>
Example:<br>
>cd ..<br>
As you type the last dot, The console will recognize what you mean<br>
and enter the parent directory saving you the time of pressing enter.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="ranger.gui.widgets.console.html#QuickCommandConsole">QuickCommandConsole</a></dd>
<dd><a href="ranger.gui.widgets.console.html#CommandConsole">CommandConsole</a></dd>
<dd><a href="ranger.gui.widgets.console.html#ConsoleWithTab">ConsoleWithTab</a></dd>
<dd><a href="ranger.gui.widgets.console.html#Console">Console</a></dd>
<dd><a href="ranger.gui.widgets.html#Widget">ranger.gui.widgets.Widget</a></dd>
<dd><a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a></dd>
<dd><a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a></dd>
<dd><a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a></dd>
<dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd>
<dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd>
<dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="QuickCommandConsole-on_line_change"><strong>on_line_change</strong></a>(self)</dt></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>prompt</strong> = '>'</dl>
<hr>
Methods inherited from <a href="ranger.gui.widgets.console.html#CommandConsole">CommandConsole</a>:<br>
<dl><dt><a name="QuickCommandConsole-execute"><strong>execute</strong></a>(self, cmd<font color="#909090">=None</font>)</dt></dl>
<hr>
Methods inherited from <a href="ranger.gui.widgets.console.html#ConsoleWithTab">ConsoleWithTab</a>:<br>
<dl><dt><a name="QuickCommandConsole-tab"><strong>tab</strong></a>(self, n<font color="#909090">=1</font>)</dt></dl>
<hr>
Methods inherited from <a href="ranger.gui.widgets.console.html#Console">Console</a>:<br>
<dl><dt><a name="QuickCommandConsole-__init__"><strong>__init__</strong></a>(self, win)</dt></dl>
<dl><dt><a name="QuickCommandConsole-add_to_history"><strong>add_to_history</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickCommandConsole-clear"><strong>clear</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickCommandConsole-close"><strong>close</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickCommandConsole-delete"><strong>delete</strong></a>(self, mod)</dt></dl>
<dl><dt><a name="QuickCommandConsole-delete_rest"><strong>delete_rest</strong></a>(self, direction)</dt></dl>
<dl><dt><a name="QuickCommandConsole-delete_word"><strong>delete_word</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickCommandConsole-draw"><strong>draw</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickCommandConsole-finalize"><strong>finalize</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickCommandConsole-history_move"><strong>history_move</strong></a>(self, n)</dt></dl>
<dl><dt><a name="QuickCommandConsole-init"><strong>init</strong></a>(self)</dt><dd><tt>override this. Called directly after class change</tt></dd></dl>
<dl><dt><a name="QuickCommandConsole-move"><strong>move</strong></a>(self, relative<font color="#909090">=0</font>, absolute<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="QuickCommandConsole-open"><strong>open</strong></a>(self, mode, string<font color="#909090">=''</font>)</dt></dl>
<dl><dt><a name="QuickCommandConsole-paste"><strong>paste</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickCommandConsole-press"><strong>press</strong></a>(self, key)</dt></dl>
<dl><dt><a name="QuickCommandConsole-type_key"><strong>type_key</strong></a>(self, key)</dt></dl>
<hr>
Data and other attributes inherited from <a href="ranger.gui.widgets.console.html#Console">Console</a>:<br>
<dl><dt><strong>commandlist</strong> = None</dl>
<dl><dt><strong>copy</strong> = ''</dl>
<dl><dt><strong>histories</strong> = None</dl>
<dl><dt><strong>history</strong> = None</dl>
<dl><dt><strong>last_cursor_mode</strong> = 1</dl>
<dl><dt><strong>mode</strong> = None</dl>
<dl><dt><strong>original_line</strong> = None</dl>
<dl><dt><strong>override</strong> = None</dl>
<dl><dt><strong>tab_deque</strong> = None</dl>
<dl><dt><strong>visible</strong> = False</dl>
<hr>
Methods inherited from <a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a>:<br>
<dl><dt><a name="QuickCommandConsole-__contains__"><strong>__contains__</strong></a>(self, item)</dt><dd><tt>Is item inside the boundaries?<br>
item can be an iterable like [y, x] or an object with x and y methods.</tt></dd></dl>
<dl><dt><a name="QuickCommandConsole-__nonzero__"><strong>__nonzero__</strong></a>(self)</dt><dd><tt>Always True</tt></dd></dl>
<dl><dt><a name="QuickCommandConsole-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickCommandConsole-click"><strong>click</strong></a>(self, event)</dt><dd><tt>Called when a mouse key is pressed and self.<strong>focused</strong> is True.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="QuickCommandConsole-contains_point"><strong>contains_point</strong></a>(self, y, x)</dt><dd><tt>Test whether the point (with absolute coordinates) lies<br>
within the boundaries of this object.</tt></dd></dl>
<dl><dt><a name="QuickCommandConsole-destroy"><strong>destroy</strong></a>(self)</dt><dd><tt>Called when the object is destroyed.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="QuickCommandConsole-poke"><strong>poke</strong></a>(self)</dt><dd><tt>Called before drawing, even if invisible</tt></dd></dl>
<dl><dt><a name="QuickCommandConsole-resize"><strong>resize</strong></a>(self, y, x, hei<font color="#909090">=None</font>, wid<font color="#909090">=None</font>)</dt><dd><tt>Resize the widget</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a>:<br>
<dl><dt><strong>env</strong> = None</dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a>:<br>
<dl><dt><strong>fm</strong> = None</dl>
<hr>
Data descriptors inherited from <a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Methods inherited from <a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a>:<br>
<dl><dt><a name="QuickCommandConsole-addnstr"><strong>addnstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="QuickCommandConsole-addstr"><strong>addstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="QuickCommandConsole-color"><strong>color</strong></a>(self, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors from now on.</tt></dd></dl>
<dl><dt><a name="QuickCommandConsole-color_at"><strong>color_at</strong></a>(self, y, x, wid, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors at the specified position</tt></dd></dl>
<dl><dt><a name="QuickCommandConsole-color_reset"><strong>color_reset</strong></a>(self)</dt><dd><tt>Change the colors to the default colors</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>:<br>
<dl><dt><strong>settings</strong> = <ranger.ext.openstruct.OpenStruct object at 0x7f28d0aa5bd0></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="QuickOpenConsole">class <strong>QuickOpenConsole</strong></a>(<a href="ranger.gui.widgets.console.html#ConsoleWithTab">ConsoleWithTab</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>The <a href="#QuickOpenConsole">QuickOpenConsole</a> allows you to open files with<br>
pre-defined programs and modes very quickly. By adding flags<br>
to the command, you can specify precisely how the program is run,<br>
ie. the d-flag will run it detached from the filemanager.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="ranger.gui.widgets.console.html#QuickOpenConsole">QuickOpenConsole</a></dd>
<dd><a href="ranger.gui.widgets.console.html#ConsoleWithTab">ConsoleWithTab</a></dd>
<dd><a href="ranger.gui.widgets.console.html#Console">Console</a></dd>
<dd><a href="ranger.gui.widgets.html#Widget">ranger.gui.widgets.Widget</a></dd>
<dd><a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a></dd>
<dd><a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a></dd>
<dd><a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a></dd>
<dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd>
<dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd>
<dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="QuickOpenConsole-execute"><strong>execute</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickOpenConsole-init"><strong>init</strong></a>(self)</dt></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>prompt</strong> = 'open with: '</dl>
<hr>
Methods inherited from <a href="ranger.gui.widgets.console.html#ConsoleWithTab">ConsoleWithTab</a>:<br>
<dl><dt><a name="QuickOpenConsole-tab"><strong>tab</strong></a>(self, n<font color="#909090">=1</font>)</dt></dl>
<hr>
Methods inherited from <a href="ranger.gui.widgets.console.html#Console">Console</a>:<br>
<dl><dt><a name="QuickOpenConsole-__init__"><strong>__init__</strong></a>(self, win)</dt></dl>
<dl><dt><a name="QuickOpenConsole-add_to_history"><strong>add_to_history</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickOpenConsole-clear"><strong>clear</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickOpenConsole-close"><strong>close</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickOpenConsole-delete"><strong>delete</strong></a>(self, mod)</dt></dl>
<dl><dt><a name="QuickOpenConsole-delete_rest"><strong>delete_rest</strong></a>(self, direction)</dt></dl>
<dl><dt><a name="QuickOpenConsole-delete_word"><strong>delete_word</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickOpenConsole-draw"><strong>draw</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickOpenConsole-finalize"><strong>finalize</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickOpenConsole-history_move"><strong>history_move</strong></a>(self, n)</dt></dl>
<dl><dt><a name="QuickOpenConsole-move"><strong>move</strong></a>(self, relative<font color="#909090">=0</font>, absolute<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="QuickOpenConsole-on_line_change"><strong>on_line_change</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickOpenConsole-open"><strong>open</strong></a>(self, mode, string<font color="#909090">=''</font>)</dt></dl>
<dl><dt><a name="QuickOpenConsole-paste"><strong>paste</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickOpenConsole-press"><strong>press</strong></a>(self, key)</dt></dl>
<dl><dt><a name="QuickOpenConsole-type_key"><strong>type_key</strong></a>(self, key)</dt></dl>
<hr>
Data and other attributes inherited from <a href="ranger.gui.widgets.console.html#Console">Console</a>:<br>
<dl><dt><strong>commandlist</strong> = None</dl>
<dl><dt><strong>copy</strong> = ''</dl>
<dl><dt><strong>histories</strong> = None</dl>
<dl><dt><strong>history</strong> = None</dl>
<dl><dt><strong>last_cursor_mode</strong> = 1</dl>
<dl><dt><strong>mode</strong> = None</dl>
<dl><dt><strong>original_line</strong> = None</dl>
<dl><dt><strong>override</strong> = None</dl>
<dl><dt><strong>tab_deque</strong> = None</dl>
<dl><dt><strong>visible</strong> = False</dl>
<hr>
Methods inherited from <a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a>:<br>
<dl><dt><a name="QuickOpenConsole-__contains__"><strong>__contains__</strong></a>(self, item)</dt><dd><tt>Is item inside the boundaries?<br>
item can be an iterable like [y, x] or an object with x and y methods.</tt></dd></dl>
<dl><dt><a name="QuickOpenConsole-__nonzero__"><strong>__nonzero__</strong></a>(self)</dt><dd><tt>Always True</tt></dd></dl>
<dl><dt><a name="QuickOpenConsole-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<dl><dt><a name="QuickOpenConsole-click"><strong>click</strong></a>(self, event)</dt><dd><tt>Called when a mouse key is pressed and self.<strong>focused</strong> is True.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="QuickOpenConsole-contains_point"><strong>contains_point</strong></a>(self, y, x)</dt><dd><tt>Test whether the point (with absolute coordinates) lies<br>
within the boundaries of this object.</tt></dd></dl>
<dl><dt><a name="QuickOpenConsole-destroy"><strong>destroy</strong></a>(self)</dt><dd><tt>Called when the object is destroyed.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="QuickOpenConsole-poke"><strong>poke</strong></a>(self)</dt><dd><tt>Called before drawing, even if invisible</tt></dd></dl>
<dl><dt><a name="QuickOpenConsole-resize"><strong>resize</strong></a>(self, y, x, hei<font color="#909090">=None</font>, wid<font color="#909090">=None</font>)</dt><dd><tt>Resize the widget</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a>:<br>
<dl><dt><strong>env</strong> = None</dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a>:<br>
<dl><dt><strong>fm</strong> = None</dl>
<hr>
Data descriptors inherited from <a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Methods inherited from <a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a>:<br>
<dl><dt><a name="QuickOpenConsole-addnstr"><strong>addnstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="QuickOpenConsole-addstr"><strong>addstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="QuickOpenConsole-color"><strong>color</strong></a>(self, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors from now on.</tt></dd></dl>
<dl><dt><a name="QuickOpenConsole-color_at"><strong>color_at</strong></a>(self, y, x, wid, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors at the specified position</tt></dd></dl>
<dl><dt><a name="QuickOpenConsole-color_reset"><strong>color_reset</strong></a>(self)</dt><dd><tt>Change the colors to the default colors</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>:<br>
<dl><dt><strong>settings</strong> = <ranger.ext.openstruct.OpenStruct object at 0x7f28d0aa5bd0></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="SearchConsole">class <strong>SearchConsole</strong></a>(<a href="ranger.gui.widgets.console.html#Console">Console</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="ranger.gui.widgets.console.html#SearchConsole">SearchConsole</a></dd>
<dd><a href="ranger.gui.widgets.console.html#Console">Console</a></dd>
<dd><a href="ranger.gui.widgets.html#Widget">ranger.gui.widgets.Widget</a></dd>
<dd><a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a></dd>
<dd><a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a></dd>
<dd><a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a></dd>
<dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd>
<dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd>
<dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="SearchConsole-execute"><strong>execute</strong></a>(self)</dt></dl>
<dl><dt><a name="SearchConsole-init"><strong>init</strong></a>(self)</dt></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>prompt</strong> = '/'</dl>
<hr>
Methods inherited from <a href="ranger.gui.widgets.console.html#Console">Console</a>:<br>
<dl><dt><a name="SearchConsole-__init__"><strong>__init__</strong></a>(self, win)</dt></dl>
<dl><dt><a name="SearchConsole-add_to_history"><strong>add_to_history</strong></a>(self)</dt></dl>
<dl><dt><a name="SearchConsole-clear"><strong>clear</strong></a>(self)</dt></dl>
<dl><dt><a name="SearchConsole-close"><strong>close</strong></a>(self)</dt></dl>
<dl><dt><a name="SearchConsole-delete"><strong>delete</strong></a>(self, mod)</dt></dl>
<dl><dt><a name="SearchConsole-delete_rest"><strong>delete_rest</strong></a>(self, direction)</dt></dl>
<dl><dt><a name="SearchConsole-delete_word"><strong>delete_word</strong></a>(self)</dt></dl>
<dl><dt><a name="SearchConsole-draw"><strong>draw</strong></a>(self)</dt></dl>
<dl><dt><a name="SearchConsole-finalize"><strong>finalize</strong></a>(self)</dt></dl>
<dl><dt><a name="SearchConsole-history_move"><strong>history_move</strong></a>(self, n)</dt></dl>
<dl><dt><a name="SearchConsole-move"><strong>move</strong></a>(self, relative<font color="#909090">=0</font>, absolute<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="SearchConsole-on_line_change"><strong>on_line_change</strong></a>(self)</dt></dl>
<dl><dt><a name="SearchConsole-open"><strong>open</strong></a>(self, mode, string<font color="#909090">=''</font>)</dt></dl>
<dl><dt><a name="SearchConsole-paste"><strong>paste</strong></a>(self)</dt></dl>
<dl><dt><a name="SearchConsole-press"><strong>press</strong></a>(self, key)</dt></dl>
<dl><dt><a name="SearchConsole-tab"><strong>tab</strong></a>(self)</dt></dl>
<dl><dt><a name="SearchConsole-type_key"><strong>type_key</strong></a>(self, key)</dt></dl>
<hr>
Data and other attributes inherited from <a href="ranger.gui.widgets.console.html#Console">Console</a>:<br>
<dl><dt><strong>commandlist</strong> = None</dl>
<dl><dt><strong>copy</strong> = ''</dl>
<dl><dt><strong>histories</strong> = None</dl>
<dl><dt><strong>history</strong> = None</dl>
<dl><dt><strong>last_cursor_mode</strong> = 1</dl>
<dl><dt><strong>mode</strong> = None</dl>
<dl><dt><strong>original_line</strong> = None</dl>
<dl><dt><strong>override</strong> = None</dl>
<dl><dt><strong>tab_deque</strong> = None</dl>
<dl><dt><strong>visible</strong> = False</dl>
<hr>
Methods inherited from <a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a>:<br>
<dl><dt><a name="SearchConsole-__contains__"><strong>__contains__</strong></a>(self, item)</dt><dd><tt>Is item inside the boundaries?<br>
item can be an iterable like [y, x] or an object with x and y methods.</tt></dd></dl>
<dl><dt><a name="SearchConsole-__nonzero__"><strong>__nonzero__</strong></a>(self)</dt><dd><tt>Always True</tt></dd></dl>
<dl><dt><a name="SearchConsole-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<dl><dt><a name="SearchConsole-click"><strong>click</strong></a>(self, event)</dt><dd><tt>Called when a mouse key is pressed and self.<strong>focused</strong> is True.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="SearchConsole-contains_point"><strong>contains_point</strong></a>(self, y, x)</dt><dd><tt>Test whether the point (with absolute coordinates) lies<br>
within the boundaries of this object.</tt></dd></dl>
<dl><dt><a name="SearchConsole-destroy"><strong>destroy</strong></a>(self)</dt><dd><tt>Called when the object is destroyed.<br>
Override this!</tt></dd></dl>
<dl><dt><a name="SearchConsole-poke"><strong>poke</strong></a>(self)</dt><dd><tt>Called before drawing, even if invisible</tt></dd></dl>
<dl><dt><a name="SearchConsole-resize"><strong>resize</strong></a>(self, y, x, hei<font color="#909090">=None</font>, wid<font color="#909090">=None</font>)</dt><dd><tt>Resize the widget</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#EnvironmentAware">ranger.shared.EnvironmentAware</a>:<br>
<dl><dt><strong>env</strong> = None</dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a>:<br>
<dl><dt><strong>fm</strong> = None</dl>
<hr>
Data descriptors inherited from <a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Methods inherited from <a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a>:<br>
<dl><dt><a name="SearchConsole-addnstr"><strong>addnstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="SearchConsole-addstr"><strong>addstr</strong></a>(self, *args)</dt></dl>
<dl><dt><a name="SearchConsole-color"><strong>color</strong></a>(self, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors from now on.</tt></dd></dl>
<dl><dt><a name="SearchConsole-color_at"><strong>color_at</strong></a>(self, y, x, wid, keylist<font color="#909090">=None</font>, *keys)</dt><dd><tt>Change the colors at the specified position</tt></dd></dl>
<dl><dt><a name="SearchConsole-color_reset"><strong>color_reset</strong></a>(self)</dt><dd><tt>Change the colors to the default colors</tt></dd></dl>
<hr>
Data and other attributes inherited from <a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>:<br>
<dl><dt><strong>settings</strong> = <ranger.ext.openstruct.OpenStruct object at 0x7f28d0aa5bd0></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>DEFAULT_HISTORY</strong> = 0<br>
<strong>OPEN_HISTORY</strong> = 3<br>
<strong>QUICKOPEN_HISTORY</strong> = 2<br>
<strong>SEARCH_HISTORY</strong> = 1</td></tr></table>
</body></html>