diff options
author | hut <hut@lavabit.com> | 2009-11-23 12:00:05 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-11-23 12:00:05 +0100 |
commit | b0f0027f94a9619652392f1df9ad6c7346f46c0f (patch) | |
tree | df693321e687c117cad96ade9f6f037900fa81ed /code/environment.py | |
parent | 2b3db775535290cbbaae570dc79ed3438afe4795 (diff) | |
download | ranger-b0f0027f94a9619652392f1df9ad6c7346f46c0f.tar.gz |
a bunch of half assed implementations
Diffstat (limited to 'code/environment.py')
-rw-r--r-- | code/environment.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/code/environment.py b/code/environment.py new file mode 100644 index 00000000..d0ff5763 --- /dev/null +++ b/code/environment.py @@ -0,0 +1,16 @@ +class Vector(): + def __init__(self, x, y): + self.x = x + self.y = y + +class Environment(): + # A collection of data which is relevant for more than + # one class. + def __init__(self): + self.path = None + self.directories = {} + self.pwd = None # current directory + self.cf = None # current file + self.keybuffer = '' + self.copy = None + self.termsize = Vector(80, 24) |