Get the number of rows/columns on refresh()

This commit is contained in:
Andrew Resch 2009-08-06 18:21:18 +00:00
parent 8425e9915d
commit 9bf89455e6
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ class Screen(CursesStdIO):
attribute and the status bars.
"""
self.stdscr.clear()
self.rows, self.cols = self.stdscr.getmaxyx()
# Update the status bars
self.add_string(0, self.topbar)