code: def quit_alternate_screen(self):
          
          if self._in_alternate_screen:
              stdout = self._winapi(windll.kernel32.GetStdHandle, STD_OUTPUT_HANDLE)
              self._winapi(windll.kernel32.SetConsoleActiveScreenBuffer, stdout)
              self._winapi(windll.kernel32.CloseHandle, self.hconsole)
              self.hconsole = stdout
              self._in_alternate_screen = False
docs: Make stdout again the active buffer.