class_docstr: Typical usage:
  
  ::
  
      output = Vt100_Output.from_pty(sys.stdout)
      r = Renderer(style, output)
      r.render(app, layout=...)
class_docstr_tok: ["Typical","usage",":",":",":","output","=","Vt100_Output.from_pty","(","sys.stdout",")","r","=","Renderer","(","style",",","output",")","r.render","(","app",",","layout=","...",")"]
docstr: True when the height from the cursor until the bottom of the terminal
  is known. (It's often nicer to draw bottom toolbars only if the height
  is known, in order to avoid flickering when the CPR response arrives.)
docstr_tok: ["True","when","the","height","from","the","cursor","until","the","bottom","of","the","terminal","is","known",".","(","It","'s","often","nicer","to","draw","bottom","toolbars","only","if","the","height","is","known",",","in","order","to","avoid","flickering","when","the","CPR","response","arrives",".",")"]
code: def height_is_known(self) -> bool:
      """
      True when the height from the cursor until the bottom of the terminal
      is known. (It's often nicer to draw bottom toolbars only if the height
      is known, in order to avoid flickering when the CPR response arrives.)
      """
      if self.full_screen or self._min_available_height > 0:
          return True
      try:
          self._min_available_height = (
              self.output.get_rows_below_cursor_position()
          )
          return True
      except NotImplementedError:
          return False
  
imports: from __future__ import annotations
  from asyncio import FIRST_COMPLETED, Future, ensure_future, sleep, wait
  from collections import deque
  from enum import Enum
  from typing import TYPE_CHECKING, Any, Callable, Dict, Hashable
  from prompt_toolkit.application.current import get_app
  from prompt_toolkit.cursor_shapes import CursorShape
  from prompt_toolkit.data_structures import Point, Size
  from prompt_toolkit.filters import FilterOrBool, to_filter
  from prompt_toolkit.formatted_text import AnyFormattedText, to_formatted_text
  from prompt_toolkit.layout.mouse_handlers import MouseHandlers
  from prompt_toolkit.layout.screen import Char, Screen, WritePosition
  from prompt_toolkit.output import ColorDepth, Output
  from prompt_toolkit.styles import Attrs, BaseStyle, DummyStyleTransformation, StyleTransformation
label_desc: Use image node_id 4 for calling the Renderer obj's underlying member method code with example usage: obj.height_is_known() and returns: True, True, False