diff options
-rwxr-xr-x | play.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -140,7 +140,9 @@ class Window: except AttributeError: self.w.attr_off(attr) def newwin(self): - return curses.newwin(0, 0, 0, 0) + # http://mail.python.org/pipermail/python-list/2000-May/033180.html + self.parr, self.parc = os.popen('stty size', 'r').read().split() + return curses.newwin(int(self.parr), int(self.parc), 0, 0) def resize(self): self.w = self.newwin() |