don't always refresh on __init__
This commit is contained in:
parent
23f64a5440
commit
ac8c928a5b
|
@ -72,7 +72,7 @@ class CursesStdIO(object):
|
||||||
|
|
||||||
|
|
||||||
class BaseMode(CursesStdIO):
|
class BaseMode(CursesStdIO):
|
||||||
def __init__(self, stdscr, encoding=None):
|
def __init__(self, stdscr, encoding=None, do_refresh=True):
|
||||||
"""
|
"""
|
||||||
A mode that provides a curses screen designed to run as a reader in a twisted reactor.
|
A mode that provides a curses screen designed to run as a reader in a twisted reactor.
|
||||||
This mode doesn't do much, just shows status bars and "Base Mode" on the screen
|
This mode doesn't do much, just shows status bars and "Base Mode" on the screen
|
||||||
|
@ -116,7 +116,8 @@ class BaseMode(CursesStdIO):
|
||||||
colors.init_colors()
|
colors.init_colors()
|
||||||
|
|
||||||
# Do a refresh right away to draw the screen
|
# Do a refresh right away to draw the screen
|
||||||
self.refresh()
|
if do_refresh:
|
||||||
|
self.refresh()
|
||||||
|
|
||||||
def on_resize_norefresh(self, *args):
|
def on_resize_norefresh(self, *args):
|
||||||
log.debug("on_resize_from_signal")
|
log.debug("on_resize_from_signal")
|
||||||
|
|
Loading…
Reference in New Issue