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-rs latest

Server.spawn_shell

Run a shell command in the background and return immediately.

Source and package
Qualified name
libtmux::server::Server::spawn_shell
Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
pub async fn spawn_shell( &self, command: impl Into<OsString> ) -> Result<(), Error>

Description#

Success means tmux accepted the command, not that it finished or succeeded. Nothing is captured.

Errors

Returns an error when tmux refuses to enqueue the command.

Parameters

tmux command#

The tmux commands behind spawn_shell.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference