Back to Ghostty

Ghostty VT Key Encoder - WebAssembly Example

example/wasm-key-encode/index.html

1.3.1767 B
Original Source

Ghostty VT Key Encoder - WebAssembly Example

This example demonstrates encoding key events into terminal escape sequences using the Ghostty VT WebAssembly module.

⚠️ Warning: This is an example of the libghostty-vt WebAssembly API. The JavaScript keyboard event mapping to the libghostty-vt API may not be perfect and may result in encoding inaccuracies for certain keys or layouts. Do not use this as a key encoding reference.

Loading WebAssembly module...

Key Action

Press Release Repeat

Kitty Keyboard Protocol Flags

Disambiguate Report Events Report Alternates Report All As Escapes Report Text

Waiting for key events...

Note: This example must be served via HTTP (not opened directly as a file). See the README for instructions.