From 7f4f0b4ef18f03683702e4f2df64d9d663b44eb6 Mon Sep 17 00:00:00 2001
From: ducoterra
Date: Fri, 18 Sep 2026 17:23:25 -0400
Subject: [PATCH] Split terminal into flat command, achievement, and vim
modules
Move canned command data (terminal-commands.js), the achievement
system (terminal-achievements.js), and the vim simulator
(terminal-vim.js) out of terminal.js, which keeps the core
terminal loop. Load order is fixed in index.html with the
modules before terminal.js. Also share expand/collapse helpers
with the hero click handler and drop the real fetch I/O in
favour of simulated curl/wget output.
---
src/index.html | 3 +
src/terminal-achievements.js | 201 +++++++++
src/terminal-commands.js | 53 +++
src/terminal-vim.js | 444 +++++++++++++++++++
src/terminal.js | 809 +++--------------------------------
5 files changed, 756 insertions(+), 754 deletions(-)
create mode 100644 src/terminal-achievements.js
create mode 100644 src/terminal-commands.js
create mode 100644 src/terminal-vim.js
diff --git a/src/index.html b/src/index.html
index 7fdd6b3..8cc47d5 100644
--- a/src/index.html
+++ b/src/index.html
@@ -696,6 +696,9 @@ XwEAnes79w4eYeMUjIytQWACEvy4QoO7X2MLTKliSqc4Ag8=
+
+
+