Skip to content

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: renders terminalOutput, a structured Array<{ kind: "command" | "stdout" | "stderr"; text: string }>.
  • Visually distinct from CodeRunner — terminal styling (prompt indicator, monospace, no editor frame).
  • Per-command line: small copy-to-clipboard button copying just the command text.
  • No Run button. No editor.
  • LessonView switches between CodeRunner and TerminalPane based on lesson.runMode.

Acceptance criteria ​

  • [ ] A lesson with runMode: "terminal" renders TerminalPane, not Monaco.
  • [ ] Copy button writes only the command (no $ prompt).
  • [ ] Visual diff between CodeRunner and TerminalPane is 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.

Built as an experiment in six-model parity.