class_docstr: Raised when the application is not running inside a Windows Console, but
  the user tries to instantiate Win32Output.
class_docstr_tok: ["Raised","when","the","application","is","not","running","inside","a","Windows","Console",",","but","the","user","tries","to","instantiate","Win32Output","."]
code: def __init__(self) -> None:
      # Are we running in 'xterm' on Windows, like git-bash for instance?
      xterm = "xterm" in os.environ.get("TERM", "")
  
      if xterm:
          message = (
              "Found %s, while expecting a Windows console. "
              'Maybe try to run this program using "winpty" '
              "or run it in cmd.exe instead. Or otherwise, "
              "in case of Cygwin, use the Python executable "
              "that is compiled for Cygwin." % os.environ["TERM"]
          )
      else:
          message = "No Windows console found. Are you running cmd.exe?"
      super().__init__(message)
  
imports: from __future__ import annotations
  import sys
  import os
  from ctypes import ArgumentError, byref, c_char, c_long, c_uint, c_ulong, pointer
  from ctypes.wintypes import DWORD, HANDLE
  from typing import Callable, TextIO, TypeVar
  from prompt_toolkit.cursor_shapes import CursorShape
  from prompt_toolkit.data_structures import Size
  from prompt_toolkit.styles import ANSI_COLOR_NAMES, Attrs
  from prompt_toolkit.utils import get_cwidth
  from prompt_toolkit.win32_types import CONSOLE_SCREEN_BUFFER_INFO, COORD, SMALL_RECT, STD_INPUT_HANDLE, STD_OUTPUT_HANDLE
  from ..utils import SPHINX_AUTODOC_RUNNING
  from .base import Output
  from .color_depth import ColorDepth
label_desc: Use image node_id 1 to create a new NoConsoleScreenBufferError object from inherited base classes: Exception with example: obj = NoConsoleScreenBufferError()