Back to Ghostty

Ghostty VT SGR Parser - WebAssembly Example

example/wasm-sgr/index.html

1.3.1495 B
Original Source

Ghostty VT SGR Parser - WebAssembly Example

This example demonstrates parsing terminal SGR (Select Graphic Rendition) sequences using the Ghostty VT WebAssembly module.

Loading WebAssembly module...

SGR Sequence

Enter SGR sequence (numbers separated by ':' or ';'):4:3;38;2;51;51;51;48;2;170;170;170;58;2;255;97;136

The parser runs live as you type.

Waiting for input...

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