-
Notifications
You must be signed in to change notification settings - Fork 0
File Structure
Retro-Jack edited this page May 8, 2026
·
63 revisions
dos-site/
├── README.md one-page entry point
├── CHANGELOG.md
├── index.html fake BIOS POST → redirects to prompt/
├── favicon.ico
├── make_fonts.py generates f12.N.png palette variants
│
├── prompt/ the DOS terminal
│ ├── index.html
│ ├── favicon.ico
│ ├── animated_favicon1.gif
│ ├── javascript/
│ │ ├── globals.js shared state (palette, paths, flags)
│ │ ├── goFontGo.js builds the 256 CSS rules
│ │ ├── classUtils.js add/remove/test class helpers
│ │ ├── keyboard.js keypress / keydown handlers
│ │ ├── terminal.js echo, executeBatch, prompt rendering
│ │ ├── fs.js the virtual C: drive
│ │ ├── commands-core.js handleCmd, dir, type, etc.
│ │ ├── commands.js echo, cd, cls, setcol, easter eggs
│ │ └── init.js entry point
│ └── img/
│ ├── f12.7.png master sprite sheet (light grey)
│ └── f12.<0-15>.png CGA palette variants
│
└── emulators/
├── jsbeeb/ BBC Micro (vendored from mattgodbolt/jsbeeb)
├── jsnes/ NES (vendored from bfirsh/jsnes)
└── genesis/ Sega Genesis (vendored from lrusso/Genesis)
| Emulator | Runtime | Wrapper | ROM dir |
|---|---|---|---|
jsbeeb/ |
dist/ (Vite build) |
the dist's own index.html (URL-driven) |
dist/discs/ |
jsnes/ |
dist/jsnes.min.js |
play.html |
roms/ |
genesis/ |
Genesis.min.js |
play.html |
roms/ |
Each non-jsbeeb emulator also has a games.json mapping <key> → {title, rom} consumed by its play.html.
| File | Purpose |
|---|---|
index.html |
4-second BIOS POST animation, then <meta refresh> to prompt/
|
prompt/index.html |
Loads the JS modules in order, hosts the terminal <div>
|
prompt/img/f12.7.png |
192×192 px, 16×16 grid of 12×12 px CP437 glyphs (light grey) |
prompt/img/f12.<N>.png |
Pre-tinted variant for CGA palette index N |
make_fonts.py |
One-shot PIL script that tints f12.7.png into the other variants |