(self)
Set up console
Set up console
Set up console
def __init__(self):
        """Set up console"""
        # preserve original settings
        self._orig_csbie = GetConsoleScreenBufferInfoEx(HSTDOUT)
        self._orig_stdin_mode = GetConsoleMode(HSTDIN)
        self._attrs = self._orig_csbie.wAttributes
        # input
        self._input_buffer = deque()
        self._echo = True
        self._save_stdout = None
        # standard streams - these may change in alternative screen buffe rmode
        self._hstdin = HSTDIN
        self._hstdout = HSTDOUT
        self._hstderr = HSTDERR
def __init__ ( self ) : # preserve original settings self . _orig_csbie = GetConsoleScreenBufferInfoEx ( HSTDOUT ) self . _orig_stdin_mode = GetConsoleMode ( HSTDIN ) self . _attrs = self . _orig_csbie . wAttributes # input self . _input_buffer = deque ( ) self . _echo = True self . _save_stdout = None # standard streams - these may change in alternative screen buffe rmode self . _hstdin = HSTDIN self . _hstdout = HSTDOUT self . _hstderr = HSTDERR