(self, input_queue, video_queue, **kwargs)
Setup the interface.
Setup the interface.
Setup the interface .
def __init__(self, input_queue, video_queue, **kwargs):
        """Setup the interface."""
        self.alive = True
        self.busy = False
        self._input_queue = input_queue
        self._video_queue = video_queue
        self._handlers = {
            signals.VIDEO_SET_MODE: self.set_mode,
            signals.VIDEO_UPDATE: self.update,
            signals.VIDEO_CLEAR_ROWS: self.clear_rows,
            signals.VIDEO_SCROLL: self.scroll,
            signals.VIDEO_SET_PALETTE: self.set_palette,
            signals.VIDEO_SET_CURSOR_SHAPE: self.set_cursor_shape,
            signals.VIDEO_SHOW_CURSOR: self.show_cursor,
            signals.VIDEO_MOVE_CURSOR: self.move_cursor,
            signals.VIDEO_SET_BORDER_ATTR: self.set_border_attr,
            signals.VIDEO_SET_CAPTION: self.set_caption_message,
            signals.VIDEO_SET_CLIPBOARD_TEXT: self.set_clipboard_text,
        }
def __init__ ( self , input_queue , video_queue , * * kwargs ) : self . alive = True self . busy = False self . _input_queue = input_queue self . _video_queue = video_queue self . _handlers = { signals . VIDEO_SET_MODE : self . set_mode , signals . VIDEO_UPDATE : self . update , signals . VIDEO_CLEAR_ROWS : self . clear_rows , signals . VIDEO_SCROLL : self . scroll , signals . VIDEO_SET_PALETTE : self . set_palette , signals . VIDEO_SET_CURSOR_SHAPE : self . set_cursor_shape , signals . VIDEO_SHOW_CURSOR : self . show_cursor , signals . VIDEO_MOVE_CURSOR : self . move_cursor , signals . VIDEO_SET_BORDER_ATTR : self . set_border_attr , signals . VIDEO_SET_CAPTION : self . set_caption_message , signals . VIDEO_SET_CLIPBOARD_TEXT : self . set_clipboard_text , }