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.

class libtmux-java latest

WindowSpec.Builder

Collects the choices, each named for what it does rather than for the field it sets.

Source and package
Qualified name
io.github.libtmux.WindowSpec.Builder
Package
io.github.libtmux
Declared in
WindowSpec
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/WindowSpec.java
class io.github.libtmux.WindowSpec.Builder

Members12#

Common operations1#

  • environment method Adds several variables to the new window's environment, keeping any already set.

Other members11#

  • after method Puts the window immediately after the current one.
  • atIndex method Creates the window at a chosen index rather than the next one tmux has free.
  • before method Puts the window immediately before the current one.
  • build method The finished spec.
  • detached method Leaves the current window selected, where tmux would move to the new one.
  • env method Sets one variable in the new window's environment.
  • in method Starts the window in this directory. A relative one resolves against this process's working directory, on every release.
  • named method Names the window, where tmux would otherwise name it after what runs in it.
  • replaceExisting method Destroys whatever window already sits at the index chosen by #atIndex().
  • reuseExisting method Selects a window that already carries this name rather than making a second.
  • running method Runs a command instead of the session's shell. tmux reports the window before the command has started, so wait for its pane's command with java.time.Duration) rather than reading it at once.

Guides#

Pages that discuss Builder.

Esc

Type to search.

Reference previewOpen reference