FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
ftxui

title-img

FTXUI 分為三個模組,每個模組都建立在前一個的基礎之上:

  1. ftxui/screen - 低階渲染
  2. ftxui/dom - 佈局與組合
  3. ftxui/component - 使用者互動

ftxui/screen

定義:

用於直接終端繪圖和樣式設定。


ftxui/dom

提供:

  • **ftxui::Element**:用於佈局和 UI 的樹狀結構。
  • 可組合和響應式元素。
  • Render() 用於繪製到 Screen 上。

適用於結構化、樣式化的 UI。


ftxui/component

新增:

  • **ftxui::Component**:有狀態、互動式小工具。
  • 內建功能:CheckboxInputMenuButton
  • 支援鍵盤/游標輸入和組合。

適用於互動式應用程式。


模組可以單獨使用,也可以一起使用:screen → dom → component