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.kill

End the program and remove its pane, unless kept.

Source and package
Qualified name
Program.kill
Module
program
Declared in
Program
Package
libtmux
Source
packages/libtmux/src/program.ts

Description#

Every call waits for the same end. A running program gets SIGTERM and, two seconds later, SIGKILL, sent to its process group on the tmux server's machine, so one that ignores SIGHUP still ends.

Examples#

const program = await server.spawn(["sleep", "30"]);
await program.kill();
Esc

Type to search.

Reference previewOpen reference