@kyedoesdev/wasm-terminal
v0.1.3
Published
A WASM package written in C that draws a virtual terminal
Downloads
1
Readme
WASM Terminal
A WASM package written in C that draws a terminal and outputs it to a canvas.
Just created as a simple way for me to learn how to write for WASM in C directly, without using emscripten, and package it in an npm package.
Usage
import { WASMTerminal } from "@kyedoesdev/wasm-terminal";
(async () => {
const terminal = new WASMTerminal();
await terminal.init();
terminal.setText("abc wasm!!");
terminal.renderToCanvas("#renderCanvas");
})();