Expand description
Chart renderer selector.
Detects terminal graphics capability once at startup and picks the highest-fidelity renderer the current terminal supports:
Backend::Kitty— writes PNG via kitty’s graphics APC. Works in kitty, wezterm, ghostty, kitten-wrapped tmux, etc.Backend::Ratatui— braille / block-based charting inside ratatui’s canvas widget. Works everywhere ratatui does.Backend::Text— monospace ASCII block renderer, the fallback used by the automation CLI.
Enums§
Functions§
- detect_
backend - Decide which chart backend to use given the current process
environment. Honours
NOMISYNC_TUI_CHARTfor explicit overrides — useful for CI recordings and for users whose terminal capability the heuristics misidentify. - detect_
for - Capability detection driven by the active [
Transport]’sclient_term. The SSH transport returns the terminal type the peer announced viapty-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.