interface

Terminal

A terminal session: the command types itself after the prompt with a frame-keyed blinking cursor, then output lines appear staggered. Built on the glass surface. Deterministic — no timers.

$ npx ondajs add terminal

Terminal

A terminal session on the Onda glass surface: the command types itself out after the prompt (via useTextReveal), a block cursor blinks while typing (keyed off the frame, not a timer — so it stays deterministic), then the output lines appear staggered once typing finishes. The prompt glyph carries the one earned accent.

Props

PropTypeDefaultNotes
commandstringsampleThe command that types itself.
outputstring[]sampleLines that appear after typing.
promptstring"$"Shell prompt glyph.
titlestring"zsh"Title-bar label.
chromebooleantrueWindow chrome.
delaynumber0Frames before typing.
typeSpeednumber30Frames to type the command.
outputDelaynumber8Frames before output begins.
fontFamilystringmonospace stack
fontSizenumber48Sized for video, not screen UI.
widthnumber1100Fixed so the frame is stable while typing.
textColor / promptColor / outputColorstringtoken defaults
placementregion or {x,y,anchor}Canvas placement.

Usage

TSX
import { Terminal } from './components/onda/terminal/Terminal';

export const InstallScene = () => (
  <Terminal command="npx ondajs add code-block" output={['✓ added code-block']} placement="center" />
);