
Linux Bash Terminal Simulator
Evaluates models' ability to build a functional Linux bash session simulator
Prompt
task: Build a Linux Bash Terminal Simulator tech stack: HTML/CSS/JS (single file, no external dependencies) Requirements: 1. Visual terminal window styled like a real bash session (dark background, monospace font, blinking cursor, terminal header bar). 2. Support the following commands with realistic output: - ls, cd, pwd, mkdir, touch, rm, cat, echo, clear, whoami, help 3. Maintain a simulated in-memory filesystem (directories/files) that persists during the session and responds correctly to navigation (cd, ls per directory) 4. Command history: Up/Down arrow keys cycle through previously entered commands 5. Handle invalid commands gracefully (e.g. "command not found: xyz") 6. Auto-scroll to the latest output as commands are entered 7. Input should behave like a real shell prompt (e.g. "user@host:~$ ") Bonus (optional, don't penalize if missing): - Tab autocompletion for file/directory names - Basic piping or command chaining (e.g. && or |) - Colorized output (e.g. directories in blue)
A system prompt was added to support web rendering