From 596a21f49dbb83d126300b49b5b86ab091951cb9 Mon Sep 17 00:00:00 2001 From: rhpidfyre Date: Wed, 26 Feb 2025 16:48:51 -0500 Subject: [PATCH] move `terminal.ts` and `keys.ts` into the emulator folder --- src/index.html | 2 +- src/rt/{ => emulator}/keys.ts | 4 ++-- src/rt/{ => emulator}/terminal.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/rt/{ => emulator}/keys.ts (91%) rename src/rt/{ => emulator}/terminal.ts (94%) diff --git a/src/index.html b/src/index.html index bc13f6f..ac01b1a 100644 --- a/src/index.html +++ b/src/index.html @@ -56,6 +56,6 @@ - + \ No newline at end of file diff --git a/src/rt/keys.ts b/src/rt/emulator/keys.ts similarity index 91% rename from src/rt/keys.ts rename to src/rt/emulator/keys.ts index 5e41727..71d27ff 100644 --- a/src/rt/keys.ts +++ b/src/rt/emulator/keys.ts @@ -1,5 +1,5 @@ -import run from "./shell/command/command" -import history from "./shell/history" +import run from "../shell/command/command" +import history from "../shell/history" type InputClosure = (key_event: KeyboardEvent) => void interface EnterArgs { diff --git a/src/rt/terminal.ts b/src/rt/emulator/terminal.ts similarity index 94% rename from src/rt/terminal.ts rename to src/rt/emulator/terminal.ts index d88c0bd..9a29aae 100644 --- a/src/rt/terminal.ts +++ b/src/rt/emulator/terminal.ts @@ -1,5 +1,5 @@ -import history from "./shell/history" -import prompt from "./elements/prompt" +import history from "../shell/history" +import prompt from "../elements/prompt" import keys from "./keys" const term_win_unsafe = document.querySelector("main")