+ {/* Content */}
+
+ {currentLines.map((line, i) => (
+
+ {line}
+
+ ))}
+
+
+ {/* Progress indicator */}
+ {totalPages > 1 && (
+
+ -- More --
+
+ ({progress}% · {currentPage + 1}/{totalPages})
+
+
+ )}
+
+ {/* Controls hint */}
+ {showControls && (
+
+ {totalPages > 1 ? (
+ <>
+
+ Space/↓: next · b/↑: back · g: first · G: last · q: quit
+
+ >
+ ) : (
+ q: quit
+ )}
+
+ )}
+
+ )
+}
diff --git a/components/terminal.tsx b/components/terminal.tsx
index 56c9e1f..7c69641 100644
--- a/components/terminal.tsx
+++ b/components/terminal.tsx
@@ -264,3 +264,4 @@ export { TerminalAutocomplete, useAutocomplete, COMMON_COMMANDS, COMMON_FLAGS, f
export { TerminalGhosttyTheme, GhosttyThemePicker } from './terminal-ghostty'
export { ThemeSwitcher } from './theme-switcher'
export { TerminalBadge } from './terminal-badge'
+export { TerminalPager } from './terminal-pager'