summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xplay.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/play.py b/play.py
index aa8e044..107c525 100755
--- a/play.py
+++ b/play.py
@@ -145,9 +145,7 @@ class Window:
except AttributeError: self.w.attr_off(attr)
def newwin(self):
- # http://mail.python.org/pipermail/python-list/2000-May/033180.html
- self.prc = os.popen('%s size' % which('stty'), 'r').read().split()
- return curses.newwin(int(self.prc[0]), int(self.prc[1]), 0, 0)
+ return curses.newwin(curses.tigetnum('lines'), curses.tigetnum('cols'), 0, 0)
def resize(self):
self.w = self.newwin()