Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Swift API

Swift documentation

Server.splitWindow(_:direction:size:startDirectory:)

View as Markdown

Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/Creation.swift
Other languages
PythonRuby Lua TypeScriptRustGoJava.NETC++
splitWindow(_:direction:size:startDirectory:) ( window : Window , direction : PaneDirection , size : PaneSize? , startDirectory : String? ) → Pane
methodasync [source]
methodasync [source]
splitWindow(_:direction:size:startDirectory:)

Splits a window's active pane, returning the pane that appeared.

  • Parameters:
    • window: the window to split. tmux splits whichever of its panes is active; name a pane instead with split(_:direction:size:startDirectory:).
    • direction: which side of that pane the new one takes. Defaults to PaneDirection/below, so that this and tmux split-window with no flags do the same thing.
    • size: how much of the pane being split to give the new one. Omitted, tmux halves it.
    • startDirectory: where the new pane starts. Omitted, tmux uses the pane's own.
Raises
In other ports Split a window's active pane

0 declared, 0 inherited

Esc

Type to search.