refactor(tui): organize source by feature boundaries (#5975)

* refactor(tui): group source files by feature

* refactor(tui): split app and gateway responsibilities
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-29 16:57:36 +08:00
1 parent b7abbcd70b
commit f18423800e
73 files changed
+6401 -6006

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import type { ScrollBoxRenderable } from "@opentui/core"
/** Keep scrolling functional without drawing terminal-dependent block glyphs. */
export function hideScrollbars(scrollBox: ScrollBoxRenderable): void {
for (const bar of [scrollBox.verticalScrollBar, scrollBox.horizontalScrollBar]) {
// ScrollBar can make itself visible again when content starts overflowing.
// Hiding its children as well keeps embedded terminals deterministic.
bar.visible = false
bar.showArrows = false
bar.slider.visible = false
bar.startArrow.visible = false
bar.endArrow.visible = false
}
}