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:
1 parent
b7abbcd70b
commit
f18423800e
73 files changed
+6401
-6006
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user