(self)
Enter full-screen/application mode.
Enter full-screen/application mode.
Enter full - screen / application mode .
def start_screen(self):
        """Enter full-screen/application mode."""
        # https://docs.microsoft.com/en-us/windows/console/reading-and-writing-blocks-of-characters-and-attributes
        new_buffer = _CreateConsoleScreenBuffer(
            wintypes.DWORD(0xc0000000), # GENERIC_READ | GENERIC_WRITE
            wintypes.DWORD(0x3), # FILE_SHARE_READ | FILE_SHARE_WRITE
            None,
            wintypes.DWORD(1), # CONSOLE_TEXTMODE_BUFFER
            None
        )
        _SetConsoleActiveScreenBuffer(new_buffer)
        self._save_stdout, self._hstdout = self._hstdout, new_buffer
        self.set_raw()
def start_screen ( self ) : # https://docs.microsoft.com/en-us/windows/console/reading-and-writing-blocks-of-characters-and-attributes new_buffer = _CreateConsoleScreenBuffer ( wintypes . DWORD ( 0xc0000000 ) , # GENERIC_READ | GENERIC_WRITE wintypes . DWORD ( 0x3 ) , # FILE_SHARE_READ | FILE_SHARE_WRITE None , wintypes . DWORD ( 1 ) , # CONSOLE_TEXTMODE_BUFFER None ) _SetConsoleActiveScreenBuffer ( new_buffer ) self . _save_stdout , self . _hstdout = self . _hstdout , new_buffer self . set_raw ( )