Core LibraryunreleasedAPI Reference

Choose documentation 2

latest

Current version

latest
English

Unreleased libtmux has not been released. Its API may change during development. This site's structure and URLs may change too.

function libtmux-lisp latest

libtmux:new-window

Create a physical window in captured SESSION and return a COMMAND-OUTCOME. NAME and CWD are literal strings. INDEX chooses a free link index; omission uses tmux's next available index. DETACHED defaults true. ENVIRONMENT is a list/vector of (name . value) string pairs. COMMAND is nonempty argv; SHELL-COMMAND is a separate, mutually exclusive shell string. Omit both for tmux's default shell. OUTCOME-VALUE supplies the resulting window; observation failure is separate. Never replaces an occupied index or retries a mutation. Limits cover all I/O.

Source and package
Qualified name
libtmux:new-window
Declared in
libtmux
Package
libtmux
Source
src/creation.lisp
(new-window client session &key name index cwd environment (command nil command-p) (shell-command nil shell-command-p) (detached t) cancel-token timeout output-limit)

Public owner: libtmux

tmux command#

The tmux commands behind new-window.

tmux C API#

The C declarations in tmux that implement these commands.

Guides#

Pages that discuss new-window.

Esc

Type to search.

Reference previewOpen reference