diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-04-04 10:59:46 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-04-07 16:32:07 +0800 |
| commit | b7e88eef917d69e37a4596d0857f95d2ffdd47bd (patch) | |
| tree | da0adffb933e8a94fb6a4b0bc2715903c02757b8 | |
| parent | c49a4a170658d7e929272ebecd729f3645f36b17 (diff) | |
ftxui(logComponent): don't use custom patch to have a min_size but offical way instead
doesn't seem to work though(see
https://github.com/ArthurSonzogni/FTXUI/pull/1028#issuecomment-2776497917)
| -rw-r--r-- | src/inputManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inputManager.cpp b/src/inputManager.cpp index cc3880b..702cb34 100644 --- a/src/inputManager.cpp +++ b/src/inputManager.cpp @@ -53,6 +53,8 @@ void CInputManager::updateIO() { void CInputManager::inputLoop() { container = logComponent |= ftxui::Scroller; container = ftxui::ResizableSplitBottom(inputComponent, container, &bottomSize); + // FIXME: doesn't seem to work (https://github.com/ArthurSonzogni/FTXUI/pull/1028#issuecomment-2776497917) + logComponent |= ftxui::size(ftxui::HEIGHT, ftxui::GREATER_THAN, 10); // FIXME: this shit spams TakeFocus(not ideal for power etc reasons) // consider: custom loop, or just only allow focus to be inputComponent somehow @@ -60,6 +62,7 @@ void CInputManager::inputLoop() { inputComponent->TakeFocus(); return false; }); + g_pRenderManager->setRenderer(ftxui::Renderer(container, [this] { return container->Render() | ftxui::border; })); |
