Skip to main content

Interface: LiveTerminalOptions

Configuration options for the LiveTerminal component.

Extends​

Properties​

PropertyTypeDescription
align?Align-
autoFocus?booleanWhether the terminal takes keyboard focus on scene entry. Default: false.
blur?numberBlur in virtual pixels (default: 0).
brightness?numberBrightness multiplier (default: 1).
className?string-
color?stringForeground CSS color (default: component/theme color).
customPositioned?booleanWhether this element manages its own CSS transform / positioning (disables stage translate3d).
cwd?stringWorking directory for the shell, relative to the project root. Default: project root.
enterDelay?numberDelay in seconds before entering scene transition begins.
enterDuration?numberDuration in seconds for entering scene transition.
env?Record<string, string>Environment variables passed to the shell process (e.g. { PS1: "$ " }).
exitDelay?numberDelay in seconds before exiting scene transition begins.
exitDuration?numberDuration in seconds for exiting scene transition.
fontSize?numberFont size in layout pixels before viewport scaling. Default: theme code size (1.25rem × stage scale).
height?SizeHeight in stage units or CSS length (default: content size).
id?string-
interactive?booleanWhether keystrokes typed into the terminal reach the process. Default: true.
onActivate?() => void-
onDeactivate?() => void-
onMount?() => void-
onUnmount?() => void-
opacity?numberWhole-element opacity from 0 to 1 (default: 1).
origin?ElementAnchorWhich point of the element sits on its coordinate (default: "top-left").
position?Position-
restartButton?booleanWhether the window header offers a button that starts a fresh session. Default: false.
rotation?numberRotation in degrees (default: 0).
rows?numberTerminal rows. Default: fit to height (44 stage units by default).
scale?numberScale multiplier (default: 1).
shell?string[]Shell command and arguments. Default: the user's login shell. Example: ["bash", "--norc", "--noprofile"].
size?SizeBoth dimensions in stage units or CSS length (default: unset).
style?Properties<0 | string & object, string & object>-
theme?Partial<ThemeConfig>-
title?stringHeader label. Default: "shell".
transcript?string[]Fallback transcript shown when the terminal server is unavailable. Default: none.
width?SizeWidth in stage units or CSS length (default: content size).
x?PositionCoordHorizontal position in stage units (default: 0).
y?PositionCoordVertical position in stage units (default: 0).