def __init__(self, use_status_line, show_toggle):
    self.show_toggle = show_toggle
    self.use_status_line = use_status_line
    if use_status_line:
        io = sys.stdout.buffer
        if hasattr(io, 'raw'):
            io = io.raw
        line = fancywait.StatusLine(io)
        self.statusline = line
def __init__(self, use_status_line, show_toggle):
    self.show_toggle = show_toggle
    self.use_status_line = use_status_line
    if use_status_line:
        io = sys.stdout.buffer
        if hasattr(io, 'raw'):
            io = io.raw
        line = fancywait.StatusLine(io)
        self.statusline = line