diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-04-02 18:49:15 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-04-07 16:32:07 +0800 |
| commit | eff21ee2ce1fdb4328d71d801352ec25f4e457ff (patch) | |
| tree | f2b3febdbd84ca7e7b799f04a407bf408719c93e /src/chatServer.cpp | |
| parent | 50de5f9b80f1859b6eaa3b68c10a3f1cfb994737 (diff) | |
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] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/chatServer.cpp')
| -rw-r--r-- | src/chatServer.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/chatServer.cpp b/src/chatServer.cpp index 56caf4b..7b64e79 100644 --- a/src/chatServer.cpp +++ b/src/chatServer.cpp @@ -1,9 +1,11 @@ #include "chatServer.hpp" +#include "IOManager.hpp" #include "chatManager.hpp" #include "commandHandler.hpp" #include "commands.hpp" #include "inputManager.hpp" #include "log.hpp" +#include "renderManager.hpp" #include "server.hpp" #include "sessionManager.hpp" @@ -28,18 +30,24 @@ void CChatServer::cleanup() { g_pServer.reset(); g_pCommandHandler.reset(); g_pInputManager.reset(); + g_pIOManager.reset(); + g_pRenderManager.reset(); } void CChatServer::initManagers() { log(LOG, "ChatServer: initializing managers"); + log(LOG, "Creating RenderManager"); + g_pRenderManager = std::make_unique<CRenderManager>(); + log(LOG, "Creating InputManager"); + g_pInputManager = std::make_unique<CInputManager>(); log(LOG, "Creating Server"); g_pServer = std::make_unique<CServer>(m_port); + log(LOG, "Creating IOManager"); + g_pIOManager = std::make_unique<CIOManager>(); log(LOG, "Creating SessionManager"); g_pSessionManager = std::make_shared<CSessionManager>(); log(LOG, "Creating ChatManager"); g_pChatManager = std::make_unique<CChatManager>(); - log(LOG, "Creating InputManager"); - g_pInputManager = std::make_unique<CInputManager>(); } void CChatServer::start() { @@ -53,5 +61,5 @@ void CChatServer::start() { m_sessionManagerThread = std::jthread(&CSessionManager::run, g_pSessionManager.get()); m_sessionManagerThread.detach(); - g_pInputManager->run(); + g_pInputManager->inputLoop(); } |
