Get the number of rows/columns on refresh()
This commit is contained in:
parent
8425e9915d
commit
9bf89455e6
@ -223,6 +223,7 @@ class Screen(CursesStdIO):
|
|||||||
attribute and the status bars.
|
attribute and the status bars.
|
||||||
"""
|
"""
|
||||||
self.stdscr.clear()
|
self.stdscr.clear()
|
||||||
|
self.rows, self.cols = self.stdscr.getmaxyx()
|
||||||
|
|
||||||
# Update the status bars
|
# Update the status bars
|
||||||
self.add_string(0, self.topbar)
|
self.add_string(0, self.topbar)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user