Skip to content

Javascript 9P/drawterm implementation. Yes, Javascript. (Also some C compiled to WebAssembly)

Notifications You must be signed in to change notification settings

aiju/jsdrawterm

Repository files navigation

Javascript Drawterm port

WARNING: PROBABLY INSECURE

This is a version of drawterm (a program for connecting to Plan 9 systems) which runs in a webbrowser. To connect to the remote host, it uses Websockets, which means you need a proxy such as websockify.

Jsdrawterm is written in Javascript, but it uses a bunch of C libraries from Plan 9 (for crypto and drawing routines) which need to be compiled to Webassembly. Since the Javascript also deals with some of the crypto, it's probably horribly insecure and hackers will steal your cats.

How to install

Either build the Webassembly yourself or download it from the release page.

  • Copy the files to your webserver.
  • Edit config.js to taste.
  • Start a Websockets proxy:
websockify 1234 cirno:17019
websockify 1235 cirno:567
  • Enjoy.

How to build

With emscripten installed, a simple make will build the blob.js and blob.wasm files. The release includes the js, html, wasm and jpg files.

About

Javascript 9P/drawterm implementation. Yes, Javascript. (Also some C compiled to WebAssembly)

Resources

Stars

Watchers

Forks

Packages

No packages published