From eff21ee2ce1fdb4328d71d801352ec25f4e457ff Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 2 Apr 2025 18:49:15 +0800 Subject: feat: ftxui (#17) * ready for merge rm sum random ocmments first and https://github.com/ArthurSonzogni/FTXUI/issues/1024 but still, ready for merge since we can't do anything on our end * style: clang-tidy * ci * ci * style: clang-tidy * fix * fix: scroll https://github.com/ArthurSonzogni/git-tui/blob/master/src/scroller.cpp * focus * update todo * style: clang-format * update todo * sticky scroll * update todxo * smol fix need event to update screen. so we just give event when IO updates * style: clang-format --------- Co-authored-by: github-actions[bot] --- src/inputManager.hpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/inputManager.hpp') diff --git a/src/inputManager.hpp b/src/inputManager.hpp index ef75b52..a81e39d 100644 --- a/src/inputManager.hpp +++ b/src/inputManager.hpp @@ -1,5 +1,6 @@ #pragma once +#include #include class CInputManager { @@ -7,7 +8,18 @@ class CInputManager { CInputManager(); ~CInputManager(); - void run(); void inputLoop(); + + void updateIO(); + + private: + std::string m_szInput; + + ftxui::Component m_input; + ftxui::Component inputComponent; + ftxui::Component logComponent; + ftxui::Component container; + + int bottomSize = 1; }; inline std::unique_ptr g_pInputManager; -- cgit v1.2.3