Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-ts latest

Program.output

What the program has printed so far, as its terminal shows it.

Source and package
Qualified name
Program.output
Module
program
Declared in
Program
Package
libtmux
Source
packages/libtmux/src/program.ts
async output(): Promise<string>

Description#

Scrollback is included and wrapped lines are joined. Tabs and trailing spaces are kept; colors and cursor movement are applied rather than returned.

Examples#

await using program = await server.spawn(["echo", "hello"]);
await program.wait();
await program.output(); // "hello"
Esc

Type to search.

Reference previewOpen reference