Terminal UI API Update

This commit is contained in:
2025-11-29 03:53:21 +00:00
parent 22e02eb97b
commit 82d896a38e
13 changed files with 952 additions and 256 deletions
+14 -2
View File
@@ -4,7 +4,19 @@
export type SpeedPreset = 'instant' | 'fast' | 'normal' | 'slow' | 'typewriter';
export const terminalSettings = {
export interface TerminalSettings {
baseTypeSpeed: number;
minTypeSpeed: number;
maxTypeSpeed: number;
startDelay: number;
lineDelay: number;
showCursor: boolean;
promptStyle: 'full' | 'short' | 'minimal';
icon: string;
scrollMargin: number;
}
export const terminalSettings: TerminalSettings = {
// Base typing speed in ms per character (will be adjusted by content length)
baseTypeSpeed: 20,
// Minimum typing speed (fastest)
@@ -18,7 +30,7 @@ export const terminalSettings = {
// Show cursor
showCursor: true,
// Prompt style
promptStyle: 'full' as 'full' | 'short' | 'minimal',
promptStyle: 'full',
// Terminal icon (emoji or text)
icon: '🐧',
// Scroll margin when navigating buttons (px)