class_docstr: I/O abstraction for rendering to Windows consoles.
  (cmd.exe and similar.)
class_docstr_tok: ["I\/O","abstraction","for","rendering","to","Windows","consoles",".","(","cmd.exe","and","similar",".",")"]
code: def __init__(self, stdout, use_complete_width=False):
      self.use_complete_width = use_complete_width
  
      self._buffer = []
      self.stdout = stdout
      self.hconsole = HANDLE(
          windll.kernel32.GetStdHandle(STD_OUTPUT_HANDLE)
      )
  
      self._in_alternate_screen = False
  
      self.color_lookup_table = ColorLookupTable()
  
      # Remember the default console colors.
      info = self.get_win32_screen_buffer_info()
      self.default_attrs = info.wAttributes if info else 15
  
      if _DEBUG_RENDER_OUTPUT:
          self.LOG = open(_DEBUG_RENDER_OUTPUT_FILENAME, "ab")
  
imports: from __future__ import unicode_literals
  from ctypes import windll, byref, ArgumentError, c_char, c_long, c_ulong, c_uint, pointer
  from ctypes.wintypes import DWORD, HANDLE
  from prompt_toolkit.renderer import Output
  from prompt_toolkit.styles import ANSI_COLOR_NAMES
  from prompt_toolkit.win32_types import CONSOLE_SCREEN_BUFFER_INFO, STD_OUTPUT_HANDLE, STD_INPUT_HANDLE, COORD, SMALL_RECT
  import os
  import six
label_desc: Use image node_id 1 to create a new Win32Output object from inherited base classes: Output with example: obj = Win32Output(stdout, use_complete_width)