ranger.container.keybuffer
index
/home/hut/work/ranger/ranger/container/keybuffer.py

# Copyright (c) 2009, 2010 hut <hut@lavabit.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

 
Classes
       
builtins.object
KeyBuffer

 
class KeyBuffer(builtins.object)
     Methods defined here:
__init__(self)
__str__(self)
returns a concatenation of all characters
append(self, key)
Append a key to the keybuffer, or initial numbers to
the number attribute.
clear(self)
Clear the keybuffer and restore the initial state
tuple_with_numbers(self)
Get a tuple of ascii codes.
tuple_without_numbers(self)
Get a tuple of ascii codes.
If the keybuffer starts with numbers, those will
be left out. To access them, use keybuffer.number

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
to_string(i)

 
Data
        NINE = 57
ZERO = 48