Skip to main content

Module chart

Module chart 

Source
Expand description

Chart renderer selector.

Detects terminal graphics capability once at startup and picks the highest-fidelity renderer the current terminal supports:

  1. Backend::Kitty — writes PNG via kitty’s graphics APC. Works in kitty, wezterm, ghostty, kitten-wrapped tmux, etc.
  2. Backend::Ratatui — braille / block-based charting inside ratatui’s canvas widget. Works everywhere ratatui does.
  3. Backend::Text — monospace ASCII block renderer, the fallback used by the automation CLI.

Enums§

Backend

Functions§

detect_backend
Decide which chart backend to use given the current process environment. Honours NOMISYNC_TUI_CHART for explicit overrides — useful for CI recordings and for users whose terminal capability the heuristics misidentify.
detect_for
Capability detection driven by the active [Transport]’s client_term. The SSH transport returns the terminal type the peer announced via pty-req; the local transport returns $TERM. Falls back to the daemon’s own environment for the remaining hints (KITTY_WINDOW_ID, TERM_PROGRAM) — those have no SSH equivalent today.
detect_from_env
Convenience wrapper that reads from the real process environment.