Something went wrong. Try again.
Ghostty for the web with xterm.js API compatibility
Something went wrong. Try again.
1.1 kB · 43 lines
TypeScript
at patch
1234567891011121314151617181920212223242526272829303132333435363738394041424344/** * Public API for @cmux/ghostty-terminal * * Main entry point following xterm.js conventions */
// Main Terminal classexport { Terminal } from './terminal';
// xterm.js-compatible interfacesexport type { ITerminalOptions, ITheme, ITerminalAddon, ITerminalCore, IDisposable, IEvent,} from './interfaces';
// Ghostty WASM components (for advanced usage)export { Ghostty, GhosttyTerminal, KeyEncoder, CellFlags, KeyEncoderOption } from './ghostty';export type { KeyEvent, KeyAction, Key, Mods, GhosttyCell, RGB, Cursor, TerminalHandle,} from './types';
// Low-level components (for custom integrations)export { CanvasRenderer } from './renderer';export type { RendererOptions, FontMetrics, IRenderable } from './renderer';export { InputHandler } from './input-handler';export { EventEmitter } from './event-emitter';export { SelectionManager } from './selection-manager';export type { SelectionCoordinates } from './selection-manager';
// Addonsexport { FitAddon } from './addons/fit';export type { ITerminalDimensions } from './addons/fit';