mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
/**
|
|
* Terminal component constants and selectors
|
|
*
|
|
* Centralized definitions to prevent breaking changes when IDs or classes are modified
|
|
*/
|
|
|
|
/**
|
|
* HTML element IDs used across terminal components
|
|
*/
|
|
export const TERMINAL_IDS = {
|
|
/** Main session container element */
|
|
SESSION_TERMINAL: 'session-terminal',
|
|
/** Buffer container for vibe-terminal-buffer component */
|
|
BUFFER_CONTAINER: 'buffer-container',
|
|
/** Terminal container for terminal.ts component */
|
|
TERMINAL_CONTAINER: 'terminal-container',
|
|
} as const;
|
|
|
|
/**
|
|
* Standard terminal font family used across the application
|
|
*/
|
|
export const TERMINAL_FONT_FAMILY =
|
|
'ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace';
|
|
|
|
/**
|
|
* IME input vertical offset in pixels for better alignment
|
|
*/
|
|
export const IME_VERTICAL_OFFSET_PX = 3;
|
|
|
|
/**
|
|
* CJK (Chinese, Japanese, Korean) language codes for IME detection
|
|
*/
|
|
export const CJK_LANGUAGE_CODES = [
|
|
'zh',
|
|
'zh-CN',
|
|
'zh-TW',
|
|
'zh-HK',
|
|
'zh-SG', // Chinese variants
|
|
'ja',
|
|
'ja-JP', // Japanese
|
|
'ko',
|
|
'ko-KR', // Korean
|
|
] as const;
|