Skip to main content

Crate ghostty_web_umd_bindgen

Crate ghostty_web_umd_bindgen 

Source
Expand description

wasm-bindgen bindings for the ghostty-web UMD global GhosttyWeb.

Tries to mirror the definitions from ghostty-web/dist/index.d.ts. Created from the ghostty-web version 0.4.0.

Modules§

builders
bon builders for dictionary option types.

Structs§

CanvasRenderer
CellFlags
Cell style flags (bitfield)
Cursor
Cursor position and visibility
Dimensions
EventEmitter
FitAddon
FontMetrics
Ghostty
Main Ghostty WASM wrapper class
GhosttyCell
Cell structure matching ghostty_cell_t in C (16 bytes)
GhosttyTerminal
GhosttyTerminal - High-performance terminal emulator
GhosttyTerminalConfig
Terminal configuration (passed to ghostty_terminal_new_with_config).
HoveredLinkRange
IBuffer
A terminal buffer (normal or alternate screen)
IBufferCell
A single cell in the buffer
IBufferCellPosition
Represents a coordinate in the terminal buffer
IBufferLine
A single line in the buffer
IBufferNamespace
Top-level buffer API namespace
IBufferRange
Buffer range for selection coordinates
IDisposable
IKeyEvent
Keyboard event with key and DOM event
ILink
Represents a detected link in the terminal
ILinkProvider
Provides link detection for a specific type of link
IRenderable
IScrollbackProvider
ITerminalAddon
ITerminalCore
ITerminalDimensions
ITerminalOptions
ITheme
IUnicodeVersionProvider
Unicode version provider (xterm.js compatibility)
InputHandler
InputHandler class
KeyEncoder
Key Encoder - converts keyboard events into terminal escape sequences
KeyEvent
Key event structure
KittyKeyFlags
Kitty keyboard protocol flags
LinkDetector
Manages link detection across multiple providers with intelligent caching
Mods
Modifier keys
Osc8LinkProvider
OSC 8 Hyperlink Provider
RGB
RGB color
RenderEvent
RenderStateColors
Colors from RenderState (12 bytes packed)
RenderStateCursor
Cursor state from RenderState (8 bytes packed)
RendererOptions
ResizeEvent
SelectionCoordinates
SelectionManager
Terminal
UrlRegexProvider
URL Regex Provider

Enums§

DirtyState
Dirty state from RenderState
Key
Physical key codes matching Ghostty’s internal Key enum.
KeyAction
Key action
KeyEncoderOption
Key encoder options

Traits§

JsGeneric
A convenience trait for types that erase to JsValue.

Functions§

init
Initialize the ghostty-web library by loading the WASM module.

Type Aliases§

IEvent
IEvent<T> = (listener: (arg: T) => void) => IDisposable
IEventVoid
Void-payload event: (listener: () => void) => IDisposable
TerminalHandle
Opaque terminal pointer (WASM memory address).