Phase 06: Pre-baked terminal pane (non-runnable lessons)
Issue #7 · open
Part of #1.
What this phase delivers
A read-only terminal-style component for runMode: "terminal" lessons. Pre-baked commands and output, per-line copy affordance.
Scope
src/components/TerminalPane.tsx: rendersterminalOutput, a structuredArray<{ kind: "command" | "stdout" | "stderr"; text: string }>.- Visually distinct from
CodeRunner— terminal styling (prompt indicator, monospace, no editor frame). - Per-
commandline: small copy-to-clipboard button copying just the command text. - No Run button. No editor.
LessonViewswitches betweenCodeRunnerandTerminalPanebased onlesson.runMode.
Acceptance criteria
- [ ] A lesson with
runMode: "terminal"rendersTerminalPane, not Monaco. - [ ] Copy button writes only the command (no
$prompt). - [ ] Visual diff between
CodeRunnerandTerminalPaneis unmistakable. - [ ]
runMode: "annotated"renders a static syntax-highlighted block with no controls.
Dependencies
Requires: #5. Unblocks: #16, #17, #18, #19.
Out of scope
- Actually executing toolchain commands.
Decision references
D6.1, D6.2, D6.3, D6.4.
Estimate: 4–5h.