Skip to content

dubsector/terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terminal

Build check CodeQL Dependabot

Interactive CRT terminal for dubsector.dev, built on xterm.js.

Goal

Replace old static CRT mockup with a real, explorable terminal that visitors can actually type into. It boots into a fake login (MOTD shows the visitor's real IP via a Cloudflare Worker endpoint), then drops into a handbuilt shell over a virtual filesystem ls, cd, cat, tab completion, command history, and cursor-aware line editing all implemented on top of xterm.js's raw keystroke events, since xterm.js itself only emulates a terminal and has no shell semantics of its own. The CRT chassis (power button, screen-off animation, phosphor glow) is there to sell the illusion of a real terminal, not just a themed textbox.

Development

npm install
npm run dev    # esbuild --watch, writes to dist/
npm run build  # production build to dist/

Deploy

Deploys to Cloudflare Workers (static assets) via Cloudflare's git integration, watching main. Build command: npm run build. Deploy command: npx wrangler deploy.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors