Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
---
title: Terminal Simulator
description: A console window that types out commands and rolls older lines off the top
component: terminal-simulator
vibe: tech
length: 240
useWhen:
- "Demoing a CLI tool install sequence (`npm install`, `npx shadcn add`, build output)."
- "Showing an AI agent or script executing a multi-step task in a terminal session."
- "A developer tool launch video needs the authentic feel of commands running and output streaming."
avoidWhen:
- "You only need to type a single short string — use `typewriter` instead, which is lighter and pairs with any layout."
- "The code should be displayed as a formatted, highlighted editor window — use `glass-code-block` instead."
askedAs:
- "command line session"
- "terminal typing commands with output"
- "I want a console showing several commands and scrolling log output"
- "fake shell window with lines rolling off the top"
- "CLI tool demo showing a build, install and success messages"
- "developer video moment that shows what running the tool looks like"
---
<ComponentPreview name="terminal-simulator" />
<InstallBlock name="terminal-simulator" />
## Usage
```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { TerminalSimulator } from "@/components/remocn/terminal-simulator";
const TerminalSimulatorScene = () => (
<TerminalSimulator
lines={[
{ text: "npm run build", type: "command" },
{ text: "Compiled successfully", type: "success", delay: 14 },
]}
/>
);
export const RemotionRoot = () => (
<Composition
id="TerminalSimulator"
component={TerminalSimulatorScene}
durationInFrames={240}
fps={30}
width={1280}
height={720}
/>
);
```
<PropsTable title="Props"
rows={[
{
name: "lines",
type: "Array<{ text: string; type: 'command' | 'log' | 'success' | 'error'; delay?: number }>",
description: "The lines to render. `delay` is the frame gap before the line starts typing.",
},
{
name: "prompt",
type: "string",
default: "\"$\"",
description: "Prompt prefix shown before `command` lines",
},
{
name: "title",
type: "string",
default: "\"~/projects/remocn\"",
description: "Title shown in the window chrome bar",
},
{
name: "background",
type: "string",
default: "\"#0a0a0a\"",
description: "Terminal background color",
},
{
name: "chromeColor",
type: "string",
default: "\"#1a1a1a\"",
description: "Window chrome bar color",
},
{
name: "fontSize",
type: "number",
default: "18",
description: "Monospace font size in pixels",
},
{
name: "charsPerFrame",
type: "number",
default: "1",
description: "Typing speed: how many characters appear per frame",
},
{
name: "className",
type: "string",
description: "Optional className passed to the outer container",
},
]}
/>