TerminalWindow

Co-pilot terminal window with auto-typing sequences.

Live demo

01
Code snippet for bash: > antcli rooms post cr_c4185d0f "Draft complete"✓ postedI have finished drafting the components and posted an update to the room!> bun run testTests 2 passed

Implementation

02
TerminalWindow.svelte
<TerminalWindow title="bash" lines={[
  { type: 'command', text: 'npm run dev' },
  { type: 'output', text: 'VITE v5.0.0 ready in 320 ms' }
]} />

Logic explainer

03

What Does It Do? (Plain English)

Detailed explanation of TerminalWindow.

How It Works (Pseudo-Code)

Setup component TerminalWindow

State Flow Diagram

stateDiagram-v2
    [*] --> Init

Props Reference

  • class (string): Additional CSS classes.

Edge Cases

  • Handles missing properties gracefully.

Dependencies

  • None.

File Structure

  • src/lib/components/TerminalWindow.svelte
  • src/lib/components/TerminalWindow.md