Skip to content

Pty

widgetsdisplay

Pty: Terminal Multiplexer widget

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

PropTypeRequiredDescription
commandstringoptionalThe command to spawn
argsstring[]optionalArguments to the command
#display#pty