Skip to content

Instantly share code, notes, and snippets.

View s1sw's full-sized avatar

Someone Somewhere s1sw

View GitHub Profile
@s1sw
s1sw / terminal.js
Created January 25, 2018 23:02
A simple fake terminal in Javascript. Requires ES6 and jQuery, but could easily be changed to not use these.
/* global $ */
window.terminalCommands = {};
var terminalElement = undefined;
var templateCommand = undefined;
var currentCommandElement = undefined;
function writeOutput(outputString) {
var outputElement = document.createElement("div");