fix(tui): suppress terminal scrollbar glyphs

This commit is contained in:
Xubin Ren
2026-08-17 20:56:10 +08:00
parent 9514b9b909
commit 0035cd67cd
4 changed files with 42 additions and 4 deletions
+3 -1
View File
@@ -12,6 +12,7 @@ import {
} from "@opentui/core"
import type { FileEditEvent, HistoryMessage } from "./protocol"
import { hideScrollbars } from "./scrollbox"
export interface DiffViewerTheme {
text: string
@@ -152,9 +153,10 @@ export class DiffViewer {
paddingTop: 1,
paddingBottom: 1,
},
verticalScrollbarOptions: { visible: true },
verticalScrollbarOptions: { visible: false },
horizontalScrollbarOptions: { visible: false },
})
hideScrollbars(this.scroll)
this.footer = new TextRenderable(renderer, {
id: "nanobot-tui-diff-footer",
content: "←/→ file · pgup/pgdn scroll · esc close",