package symphony-orchestrator-tui

  1. Overview
  2. Docs

Module Tui.Renderer

type config = {
  1. exit_on_ctrl_c : bool;
  2. target_fps : int;
  3. screen_mode : Terminal.screen_mode;
}
type t = {
  1. mutable root : Node.t;
  2. mutable width : int;
  3. mutable height : int;
  4. config : config;
  5. mutable previous : Surface.t option;
  6. mutable focused_id : string option;
  7. keymap : Keymap.t;
  8. mutable destroyed : bool;
}
val default_config : config
val create : ?width:??? -> ?height:??? -> ?config:??? -> Node.t -> t
val set_root : t -> Node.t -> unit
val viewport : t -> Viewport.t
val size : t -> int * int
val resize : t -> width:int -> height:int -> unit
val resize_to_viewport : t -> Viewport.t -> unit
val resize_to_terminal : ?env:??? -> ?fallback_to_tty:??? -> t -> unit
val focus : t -> string -> unit
val focus_next : t -> unit
val request_render : t -> Surface.t
val render_to_string : ?ansi:??? -> t -> string
val render : t -> unit
val dispatch_key : t -> Key.event -> bool
val destroy : t -> unit
val run : t -> unit