Pty
display
Pty: Terminal Multiplexer widget
Terminal
$termuijs render pty
Installation
$ bunx termuijs add pty
Copies the source into src/components/pty/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Pty } from '@termuijs/widgets'ts
new Pty(style: Partial<Style> = {}, opts: PtyOptions = {})API Reference
Pty
| Prop | Type | Required | Description |
|---|---|---|---|
command | string | optional | The command to spawn |
args | string[] | optional | Arguments to the command |