about summary refs log tree commit diff stats
path: root/code/environment.py
blob: d0ff576303c35f4c5ab46804a2f0056d2105e258 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)