0.1.3 • Published 2 years ago

@kyedoesdev/wasm-terminal v0.1.3

Weekly downloads
-
License
UPL
Repository
-
Last release
2 years ago

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");
})();

Screenshots

Screenshot of wasm-terminal