Terminal
An interactive terminal emulator with a monospace output area and a prompt input line that dispatches a command event on Enter.
Preview
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
prompt | string | $ | The prompt string shown before the input |
welcome | string | — | A line printed into the output on first connect |
Installation
pura is copy-paste and dependency-free. Load the whole library, or just this component.
<link rel="stylesheet" href="/pura/tokens.css">
<script type="module" src="/pura/lib/terminal.js"></script> import "./pura/lib/terminal.js";