Terminal UI API Update
This commit is contained in:
@@ -30,7 +30,7 @@ export type { Project, Model3D, Card } from './content';
|
||||
export { projects, models, cards, sortedCards } from './content';
|
||||
|
||||
// Terminal settings, TUI styling, speed presets, model viewer, particles, shortcuts
|
||||
export type { SpeedPreset } from './terminal';
|
||||
export type { SpeedPreset, TerminalSettings } from './terminal';
|
||||
export {
|
||||
terminalSettings,
|
||||
tuiStyle,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user