Add alternating color mode (F3)

This commit is contained in:
Joscha 2017-04-10 16:08:12 +00:00
parent e3b599eee1
commit 8c5d5bc2cb
3 changed files with 36 additions and 17 deletions

View file

@ -105,10 +105,13 @@ class Chunk():
def age(self, now=None):
return self.last_modified - (now or time.time())
def draw_to(self, x, y, window):
for line in self._content.combine(self._modifications).lines():
window.addstr(y, x, line)
y += 1
#def draw_to(self, x, y, window):
#for line in self._content.combine(self._modifications).lines():
#window.addstr(y, x, line)
#y += 1
def lines(self):
return self._content.combine(self._modifications).lines()
def modified(self):
return not self._modifications.empty()