summary refs log tree commit diff stats
path: root/code/environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'code/environment.py')
-rw-r--r--code/environment.py16
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)