demo

A terminal emulator emulator that allows users to try out programs.

This is a glorified textarea element that emulates terminal emulators.

demo demonic
minimal, easily embeddable lots of features
ed compatible :p vi, tmux compatible
made by a CS student made by professionals

Give it a Spin!

Feel free to try out some of my programs in an interactive sandbox. Click on any of the examples below to give them a spin.

devilish matriz multiply mBig1 mBig2 palindrome prime 10101 withfeathers --print wyeast zigzag-server



Installation

0. Prerequisites

node.js :: for running the server.

npm :: for installing the dependencies.

firejail :: for running programs in a sandboxed chroot environment.

git :: for a quick git clone.

If you are running Windows, the above utilities will be packaged in any of the following: babun, cmder, or Linux Subsystem for Windows. Take your pick! : )

The above utilities should be installed (or readily available) if you are running a Unix derivative (such as Linux, macOS, or any of the BSD’s).

1. Quickstart

# clone the git repo
git clone https://github.com/lbeckman314/demo

# enter directory
cd demo

# install dependencies
npm install

# copy example config
cp config-example.js config.js

# edit key, certificate, and passphrase information
nano config.js

# run server (if no port number is provided, 12345 in this example, the server will default to port 8181)
node server.js 12345

# edit server information
nano demo.js

# then you can connect to the server from a client (e.g. client-example.html)


Uninstallation

0. Delete the directory/folder.

# remove this directory
rm -rfI demo