class_docstr: Windows 10 output abstraction. This enables and uses vt100 escape sequences.
class_docstr_tok: ["Windows","10","output","abstraction",".","This","enables","and","uses","vt100","escape","sequences","."]
docstr: Return the default color depth for a windows terminal.
  
  Contrary to the Vt100 implementation, this doesn't depend on a $TERM
  variable.
docstr_tok: ["Return","the","default","color","depth","for","a","windows","terminal",".","Contrary","to","the","Vt100","implementation",",","this","does","n't","depend","on","a","$","TERM","variable","."]
code: def get_default_color_depth(self) -> ColorDepth:
      """
      Return the default color depth for a windows terminal.
  
      Contrary to the Vt100 implementation, this doesn't depend on a $TERM
      variable.
      """
      if self.default_color_depth is not None:
          return self.default_color_depth
  
      # Previously, we used `DEPTH_4_BIT`, even on Windows 10. This was
      # because true color support was added after "Console Virtual Terminal
      # Sequences" support was added, and there was no good way to detect
      # what support was given.
      # 24bit color support was added in 2016, so let's assume it's safe to
      # take that as a default:
      # https://devblogs.microsoft.com/commandline/24-bit-color-in-the-windows-console/
      return ColorDepth.TRUE_COLOR
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/output/windows10.py
imports: from __future__ import annotations
  import sys
  from ctypes import byref, windll
  from ctypes.wintypes import DWORD, HANDLE
  from typing import Any, TextIO
  from prompt_toolkit.data_structures import Size
  from prompt_toolkit.win32_types import STD_OUTPUT_HANDLE
  from .base import Output
  from .color_depth import ColorDepth
  from .vt100 import Vt100_Output
  from .win32 import Win32Output
label_desc: Use image node_id 5 for calling the Windows10_Output obj's underlying member method code with example usage: obj.get_default_color_depth() and returns: ColorDepth, self