euporie.preview.app.Vt100_Output

class euporie.preview.app.Vt100_Output(stdout: TextIO, get_size: Callable[[], Size], term: str | None = None, default_color_depth: prompt_toolkit.output.color_depth.ColorDepth | None = None, enable_bell: bool = True, enable_cpr: bool = True)
Parameters:
  • get_size – A callable which returns the Size of the output terminal.

  • stdout – Any object with has a write and flush method + an ‘encoding’ property.

  • term – The terminal environment variable. (xterm, xterm-256color, linux, …)

  • enable_cpr – When True (the default), send “cursor position request” escape sequences to the output in order to detect the cursor position. That way, we can properly determine how much space there is available for the UI (especially for drop down menus) to render. The Renderer will still try to figure out whether the current terminal does respond to CPR escapes. When False, never attempt to send CPR requests.