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

Kitty Keyboard Protocol Flags

Waiting for key events...

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