Skip to content

Commands

Retro-Jack edited this page May 8, 2026 · 13 revisions

Commands

The prompt understands a small subset of DOS commands plus a few easter-egg stubs. Commands are case-insensitive. Multiple commands can be chained with && (e.g. cd\emulators && dir).

Navigation

Command What it does
dir List the current directory
dir /w Wide view
dir /o Alphabetical order
dir /w /o Wide + sorted
cd <dir> Change directory
cd .. Go up one level
cd \ Jump to drive root
cls Clear the screen

Files

Command What it does
<filename> Execute. link: opens the URL in a new tab; data: runs as a batch script
type <file> Print the file's data (or link) to the screen

Display

Command What it does
echo <text> Print text
echo off / echo on Suppress / restore the C:\> prompt re-render after each batch line
setcol <BF> Set background + foreground colour by two hex digits (e.g. 07 = black bg, white fg)

Stub commands

These print a one-line tongue-in-cheek response and do nothing else: exit, del, rmdir, format, chkdsk, edlin, edit, debug, attrib, quit. help prints a hint.

Source: prompt/javascript/commands.js.

Easter eggs

Command Effect
zerocool Switches to a cyan-on-blue colour scheme and prints a Hackers (1995) reference
dopefish Renders the Dopefish in block characters

Keyboard

Key Action
Enter Submit
Backspace Delete last character
↑ / ↓ Step through command history

Clone this wiki locally