dirtywords

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

commit
219c8643116f0e528e66b2a149f734f98905ff62
parent
a2bf92f1eed6064f1f77c69efcb96a3e575e07d2
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2014-10-09 07:27
set additional options on curses

Diffstat

M dirtywords/curses_core.py 4 ++++

1 files changed, 4 insertions, 0 deletions


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

@@ -13,13 +13,17 @@ class Screen(base.Screen):
   13    13         curses.initscr()
   14    14         curses.start_color()
   15    15         curses.noecho()
   -1    16         curses.meta(1)
   -1    17         curses.cbreak()
   16    18         curses.curs_set(0)  # hide cursor
   -1    19         locale.setlocale(locale.LC_ALL, '')
   17    20 
   18    21         # use black background everywhere
   19    22         for i in range(1, 8):
   20    23             curses.init_pair(i, i, 0)
   21    24 
   22    25         self.curses_window = curses.newwin(height, width, 0, 0)
   -1    26         self.curses_window.keypad(1)
   23    27 
   24    28     def getch(self, blocking=True):
   25    29         if blocking: