Fixing terminal to only boot if required

This commit is contained in:
Dan 2025-12-09 14:28:30 +00:00
parent 6315c36efc
commit 1d9bc87f1b
6 changed files with 250 additions and 234 deletions

View file

@ -1,14 +1,17 @@
// Terminal Shell System
class TerminalShell {
constructor() {
this.output = document.getElementById("output");
this.input = document.getElementById("input");
this.inputContainer = document.getElementById("input-container");
this.history = [];
this.historyIndex = -1;
this.commands = {};
this.setupEventListeners();
if (document.getElementById("terminal")) {
this.output = document.getElementById("output");
this.input = document.getElementById("input");
this.inputContainer = document.getElementById("input-container");
this.setupEventListeners();
}
}
// Boot sequence