Terminal

A handle to a terminal emulator running inside a Pod

A Terminal is an opaque handle to a terminal emulator running inside a Pod. It is created by createDefaultTerminal or createCustomTerminal, and passed to run to connect a process to I/O.

class Terminal {}

Creating a Terminal

Usage

const terminal = await pod.createDefaultTerminal(element);
await pod.run("node", ["script.js"], { terminal });
Was this page helpful?
Suggest changes