dirtywords

portable text interface framework  https://pypi.python.org/pypi/dirtywords
git clone https://git.ce9e.org/dirtywords.git

commit
d8fc29c02be56b04a9b004b04f53cb2c25b88376
parent
8b72cf7dd5557ca2c71f1f74d83b155ec9f6ecc0
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2014-10-07 18:38
add TODOs

Diffstat

M dirtywords/base.py 3 +++

1 files changed, 3 insertions, 0 deletions


diff --git a/dirtywords/base.py b/dirtywords/base.py

@@ -54,6 +54,8 @@ class Core(object):
   54    54         self._pressed_keys = {}
   55    55 
   56    56     def getch(self, blocking=True):
   -1    57         # TODO: There should be some kind of abstraction for modifiers and
   -1    58         # more general any non-ascii keys.
   57    59         raise NotImplementedError
   58    60 
   59    61     def get_key_events(self):
@@ -120,6 +122,7 @@ class Core(object):
  120   122 
  121   123     def putstr(self, y, x, s):
  122   124         """Write string to position."""
   -1   125         # TODO: handle newlines
  123   126         for i, ch in enumerate(s):
  124   127             try:
  125   128                 self.data[y][x + i] = ch