This commit is contained in:
Chris Wanstrath 2025-09-20 12:18:32 -07:00
parent 03caf64231
commit 15a225e68f
7 changed files with 9 additions and 14 deletions

View File

@ -1,6 +1,5 @@
//// ////
// dom helpers and cached elements // DOM helpers and cached elements
//
// finds an element by ID // finds an element by ID
export const $ = (id: string): HTMLElement | null => export const $ = (id: string): HTMLElement | null =>

View File

@ -1,6 +1,5 @@
//// ////
// try to keep the command textbox focused at all times // We try to keep the command textbox focused at all times.
//
import { cmdTextbox } from "./dom.js" import { cmdTextbox } from "./dom.js"

View File

@ -1,6 +1,5 @@
//// ////
// input is handled by a <textarea> and friends // Terminal input is handled by a <textarea> and friends.
//
import { cmdTextbox, cmdLine } from "./dom.js" import { cmdTextbox, cmdLine } from "./dom.js"
import { runCommand } from "./shell.js" import { runCommand } from "./shell.js"

View File

@ -1,6 +1,5 @@
//// ////
// maintain the two video modes: cinema and tall // We need JS to help manage the two video modes: cinema and tall
//
const content = document.getElementById("content")! const content = document.getElementById("content")!

View File

@ -1,6 +1,7 @@
//// ////
// the shell runs on the server and processes input, returning output // The shell runs on the server and processes input, returning output.
//
import type { Message } from "../shared/message.js"
export function runCommand(input: string) { export function runCommand(input: string) {

View File

@ -1,6 +1,5 @@
//// ////
// fun vram counter at startup // Fun vram counter at startup.
//
import { $ } from "./dom.js" import { $ } from "./dom.js"

View File

@ -1,6 +1,5 @@
//// ////
// the terminal communicates with the shell via websockets // The terminal communicates with the shell via websockets.
//
import type { Message } from "../shared/message.js" import type { Message } from "../shared/message.js"