Add alternating color mode (F3)
This commit is contained in:
parent
e3b599eee1
commit
8c5d5bc2cb
3 changed files with 36 additions and 17 deletions
11
chunks.py
11
chunks.py
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue