OMP 內部設計導讀(11):TUI differential rendering 與 composer
OMP 自建 TUI 引擎而非用 React/Ink,核心是 differential rendering(只重繪變化行)、explicit history contract、composer 多模輸入與 keybindings 系統;本文從原始碼層面解析其架構決策與實作細節。
OMP 自建 TUI 引擎而非用 React/Ink,核心是 differential rendering(只重繪變化行)、explicit history contract、composer 多模輸入與 keybindings 系統;本文從原始碼層面解析其架構決策與實作細節。
pi-tui 核心完整解析:Virtual DOM Diff 算法實現無閃爍渲染、Component 生命週期、Layout Engine(Flex-like VStack/HStack/Box)、CSI 2026 同步輸出避免 partial frame tearing、Keybindings Manager、Alt Screen 管理、括號貼上模式、Kitty/iTerm2 圖片協定、Markdown/Editor/Selector/Diff 等內建元件。