summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xplay.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/play.py b/play.py
index 6e02198..27e07fe 100755
--- a/play.py
+++ b/play.py
@@ -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()