don't always refresh on __init__

This commit is contained in:
Nick 2011-02-14 12:25:43 +01:00
parent 23f64a5440
commit ac8c928a5b
1 changed files with 3 additions and 2 deletions

View File

@ -72,7 +72,7 @@ class CursesStdIO(object):
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.
This mode doesn't do much, just shows status bars and "Base Mode" on the screen
@ -116,6 +116,7 @@ class BaseMode(CursesStdIO):
colors.init_colors()
# Do a refresh right away to draw the screen
if do_refresh:
self.refresh()
def on_resize_norefresh(self, *args):