diff --git a/example/index.html b/example/index.html
index f93da37d7..314a78cb1 100644
--- a/example/index.html
+++ b/example/index.html
@@ -13,21 +13,24 @@
}
};
- fetch('ghostty-term.wasm').then(response =>
+ fetch('ghostty-wasm.wasm').then(response =>
response.arrayBuffer()
).then(bytes =>
WebAssembly.instantiate(bytes, importObject)
).then(results => {
const {
- terminal_new,
- terminal_free,
- terminal_print,
+ atlas_new,
+ atlas_free,
+ atlas_reserve,
+ free,
+ memory,
} = results.instance.exports;
- const term = terminal_new(80, 80);
- console.log(term);
- terminal_free(term);
- terminal_print('a');
+ const atlas = atlas_new(512, 0);
+ const reg = atlas_reserve(atlas, 10, 10);
+ console.log(reg);
+ free(reg);
+ atlas_free(atlas);
});