Skip to content
A terminal emulator emulator that allows users to try out programs.
JavaScript HTML Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.#code.org
.gitignore
.npmignore
LICENSE.md
README.html
README.md
codemirror.bundle.js
config-example.js
demo-logo.png
demo.bundle.js
demo.png
header.html
index.html
package-lock.json
package.json
programs.js
server.js
tmp.py

README.md

demo

A fake terminal cleans up user input and sends it to the server. The server then parses the input, and if it matches a predefined command, spawns a child process of that command/program. I really liked the ability to try out haskell interactively here and here, so this is something like that.

Try it out here.

installation and running

# 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

# remove this directory
rm -rfI demo
You can’t perform that action at this time.